elvish/pkg/eval/vals/len_test.go
2021-01-27 01:30:25 +00:00

15 lines
175 B
Go

package vals
import (
"testing"
. "src.elv.sh/pkg/tt"
)
func TestLen(t *testing.T) {
Test(t, Fn("Len", Len), Table{
Args("foobar").Rets(6),
Args(10).Rets(-1),
})
}