Skip to content

Commit

Permalink
add logical test
Browse files Browse the repository at this point in the history
  • Loading branch information
ezerozen committed Jan 10, 2024
1 parent 3490459 commit d4af902
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion parser/parse_logical_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,17 @@ func TestLogicalExpWithDateTime(t *testing.T) {
false,
},
{
`x < 2 and ( y == "foo" or z == 2024-01-09T13:20 )`,
`x < 2 and ( y != "foo" or z == 2024-01-09T13:20 )`,
obj{
"x": 1,
"y": "foo",
"z": "2024-01-09T13:20",
},
true,
false,
},
{
`x < 2 and ( y != "foo" or z < TIME_NOW_ADD(1) )`,
obj{
"x": 1,
"y": "foo",
Expand Down

0 comments on commit d4af902

Please sign in to comment.