Code

frontend/grammar: Fixed parsing of 'attribute[<string>]'.
[sysdb.git] / t / unit / frontend / parser_test.c
index 8898e8b082852b5212fe307e76ece7a538dc251b..134b50cc54cb5c499d878210ca66013274faa287 100644 (file)
@@ -213,6 +213,10 @@ START_TEST(test_parse)
                { "LOOKUP hosts MATCHING "
                  "attribute['foo'] = "
                  "1.23 + 'foo'",        -1, -1, 0 },
+               { "LOOKUP hosts MATCHING "
+                 "attr['foo'] = 1.23",  -1, -1, 0 },
+               { "LOOKUP hosts MATCHING "
+                 "attr['foo'] IS NULL", -1, -1, 0 },
 
                /* comments */
                { "/* some comment */",  -1,  0, 0 },