deep list inclusion and item membership implemented

This commit is contained in:
2024-05-29 13:03:58 +02:00
parent 4b25a07699
commit d84e690ef3
4 changed files with 68 additions and 36 deletions
+4 -1
View File
@@ -40,10 +40,13 @@ func TestRelational(t *testing.T) {
/* 27 */ {`[1,2,3] > [9]`, false, nil},
/* 28 */ {`[1,2,3] >= [6]`, false, nil},
/* 29 */ {`[1,2,3] >= [2,6]`, false, nil},
/* 30 */ {`[1,[2,3],4] > [[3,2]]`, true, nil},
/* 31 */ {`[1,[2,[3,4]],5] > [[[4,3],2]]`, true, nil},
/* 32 */ {`[[4,3],2] IN [1,[2,[3,4]],5]`, true, nil},
}
// t.Setenv("EXPR_PATH", ".")
// parserTestSpec(t, section, inputs, 27)
// parserTestSpec(t, section, inputs, 31)
parserTest(t, section, inputs)
}