github.com/markusbkk/elvish@v0.0.0-20231204143114-91dc52438621/pkg/eval/vals/errors_test.go (about) 1 package vals 2 3 import ( 4 "testing" 5 6 . "github.com/markusbkk/elvish/pkg/tt" 7 ) 8 9 func TestErrors(t *testing.T) { 10 Test(t, Fn("error.Error", error.Error), Table{ 11 Args(cannotIterate{"num"}).Rets("cannot iterate num"), 12 Args(cannotIterateKeysOf{"num"}).Rets("cannot iterate keys of num"), 13 }) 14 }