mirror of https://github.com/hak5/bolt.git
13 lines
270 B
Go
13 lines
270 B
Go
|
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")
|
||
|
}
|