From: Sebastian Harl Date: Wed, 9 Apr 2014 16:02:38 +0000 (+0200) Subject: store_lookup_test: Added a more complex parser/lookup test. X-Git-Tag: sysdb-0.1.0~132^2~16 X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=commitdiff_plain;h=6413d25dbe573432ece20d45d940e00176723de6 store_lookup_test: Added a more complex parser/lookup test. --- diff --git a/t/core/store_lookup_test.c b/t/core/store_lookup_test.c index 6365b6b..2b52a66 100644 --- a/t/core/store_lookup_test.c +++ b/t/core/store_lookup_test.c @@ -466,6 +466,13 @@ START_TEST(test_lookup) "(NOT, HOST\\{ NAME\\{ NULL, \\(nil\\) \\}, SERVICE\\{\\}, ATTR\\{ " "NAME\\{ 'k1', \\(nil\\) }, VALUE\\{ 'v2', \\(nil\\) \\} " "\\} \\})" }, + { "attribute.name != 'x' " + "AND attribute.y !~ 'x'", 3, + "\\(AND, \\(NOT, HOST\\{ NAME\\{ NULL, \\(nil\\) \\}, SERVICE\\{\\}, ATTR\\{ " + "NAME\\{ 'x', \\(nil\\) }, VALUE\\{ NULL, \\(nil\\) \\} " + "\\} \\}\\), \\(NOT, HOST\\{ NAME\\{ NULL, \\(nil\\) \\}, SERVICE\\{\\}, ATTR\\{ " + "NAME\\{ 'y', \\(nil\\) }, VALUE\\{ NULL, "PTR_RE" \\} " + "\\} \\}\\)\\)" }, }; int check, n;