aboutsummaryrefslogtreecommitdiff
path: root/error_test.go
blob: 0306985103a5a2e563310e7d02dae6d864a18964 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
package bolt

import (
	"github.com/stretchr/testify/assert"
	"testing"
)

// Ensure that nested errors are appropriately formatted.
func TestError(t *testing.T) {
	e := &Error{"one error", &Error{"two error", nil}}
	assert.Equal(t, e.Error(), "one error: two error")
}