mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-05 03:17:50 +08:00
15 lines
175 B
Go
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),
|
|
})
|
|
}
|