elvish/pkg/eval/vals/errors_test.go
2021-09-11 02:54:34 +01:00

15 lines
275 B
Go

package vals
import (
"testing"
. "src.elv.sh/pkg/tt"
)
func TestErrors(t *testing.T) {
Test(t, Fn("error.Error", error.Error), Table{
Args(cannotIterate{"num"}).Rets("cannot iterate num"),
Args(cannotIterateKeysOf{"num"}).Rets("cannot iterate keys of num"),
})
}