diff --git a/list_test.go b/list_test.go index 935956a..a1dbaf5 100644 --- a/list_test.go +++ b/list_test.go @@ -33,6 +33,9 @@ func TestListParser(t *testing.T) { /* 11 */ {`[a=1,b=2,c=3] but a+b+c`, int64(6), nil}, /* 12 */ {`[1,2,3] << 2+2`, []any{int64(1), int64(2), int64(3), int64(4)}, nil}, /* 13 */ {`2-1 >> [2,3]`, []any{int64(1), int64(2), int64(3)}, nil}, + /* 14 */ {`[1,2,3].1`, int64(2), nil}, + /* 15 */ {`ls=[1,2,3] but ls.1`, int64(2), nil}, + /* 16 */ {`ls=[1,2,3] but ls.(-1)`, int64(3), nil}, // /* 8 */ {`[int(x)|x=csv("test.csv",1,all(),1)]`, []any{int64(10), int64(40), int64(20)}, nil}, // /* 9 */ {`sum(@[int(x)|x=csv("test.csv",1,all(),1)])`, []any{int64(10), int64(40), int64(20)}, nil},