There's a bug in the test
|
{"[foo] in [foobar]", map[string]interface{}{"foo": "findme", "foobar": []string{"notme", "may", "findme", "lol"}}, true, false}, |
The key "foo" is incorrectly making the test pass if you change it to "abc" the test fails, I believe the test case should be
{"[foo] in [foobar]", map[string]interface{}{"abc": "findme", "foobar": []string{"notme", "foo", "may", "findme", "lol"}}, true, false},
The test still fails after I 'fixed' it, meaning there's a bug in the logic for this type of condition.
There's a bug in the test
conditions/parser_test.go
Line 68 in 8ed8af1
The key
"foo"is incorrectly making the test pass if you change it to"abc"the test fails, I believe the test case should beThe test still fails after I 'fixed' it, meaning there's a bug in the logic for this type of condition.