diff --git a/list_test.go b/list_test.go index 5bd9137..b64ac77 100644 --- a/list_test.go +++ b/list_test.go @@ -34,9 +34,9 @@ func TestListParser(t *testing.T) { /* 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}, - /* 17 */ {`list=["one","two","three"]; list.10`, nil, errors.New(`[1:36] index 10 out of bounds`)}, + /* 15 */ {`ls=[1,2,3] but ls[1]`, int64(2), nil}, + /* 16 */ {`ls=[1,2,3] but ls[-1]`, int64(3), nil}, + /* 17 */ {`list=["one","two","three"]; list[10]`, nil, errors.New(`[1:34] index 10 out of bounds`)}, /* 18 */ {`["a", "b", "c"]`, newListA("a", "b", "c"), nil}, /* 19 */ {`["a", "b", "c"]`, newList([]any{"a", "b", "c"}), nil}, /* 20 */ {`#["a", "b", "c"]`, int64(3), nil},