bolt/error_test.go

13 lines
270 B
Go
Raw Normal View History

2014-02-09 22:52:19 +00:00
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")
}