summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ee3739d)
raw | patch | inline | side by side (parent: ee3739d)
author | Sebastian Harl <sh@tokkee.org> | |
Sun, 6 Apr 2014 11:38:27 +0000 (13:38 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sun, 6 Apr 2014 11:38:27 +0000 (13:38 +0200) |
t/frontend/parser_test.c | patch | blob | history |
index 20596eec38820d949a40ffc22279fd120f860955..705e7322370ee370fb0d3c2434f85a5668d44cb4 100644 (file)
--- a/t/frontend/parser_test.c
+++ b/t/frontend/parser_test.c
{ "host.name =~ 'pattern' OR "
"service.name =~ 'pattern'", -1, MATCHER_OR },
+ /* check operator precedence */
+ { "host.name = 'name' OR "
+ "service.name = 'name' AND "
+ "attribute.name = 'name' OR "
+ "attribute.foo = 'bar'", -1, MATCHER_OR },
+ { "host.name = 'name' AND "
+ "service.name = 'name' AND "
+ "attribute.name = 'name' OR "
+ "attribute.foo = 'bar'", -1, MATCHER_OR },
+ { "host.name = 'name' AND "
+ "service.name = 'name' OR "
+ "attribute.name = 'name' AND "
+ "attribute.foo = 'bar'", -1, MATCHER_OR },
+
/* syntax errors */
{ "LIST", -1, -1 },
{ "foo &^ bar", -1, -1 },