From 6413d25dbe573432ece20d45d940e00176723de6 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 9 Apr 2014 18:02:38 +0200 Subject: [PATCH] store_lookup_test: Added a more complex parser/lookup test. --- t/core/store_lookup_test.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- 2.30.2