Code

store/frontend: Added support for integer and float comparison.
[sysdb.git] / t / unit / core / store_lookup_test.c
index 4a935429923bb4dd1118c092756387cf1393fc0e..6dd7bb3fa1916a2119cc1985f9c2dc7393a3db47 100644 (file)
@@ -534,6 +534,18 @@ START_TEST(test_lookup)
                        "OBJ\\[attribute\\]\\{ NAME\\{ 'x', \\(nil\\) \\}" },
                { "attribute.k1 = 'v1'",   1,
                        "ATTR\\[k1\\]\\{ VALUE\\{ 'v1', \\(nil\\) \\} \\}" },
+               { "attribute.k2 < 123",    0,
+                       "ATTR\\[k2\\]\\{ < 123 \\}" },
+               { "attribute.k2 <= 123",   1,
+                       "ATTR\\[k2\\]\\{ <= 123 \\}" },
+               { "attribute.k2 >= 123",   1,
+                       "ATTR\\[k2\\]\\{ >= 123 \\}" },
+               { "attribute.k2 > 123",    0,
+                       "ATTR\\[k2\\]\\{ > 123 \\}" },
+               { "attribute.k2 = 123",    1,
+                       "ATTR\\[k2\\]\\{ = 123 \\}" },
+               { "attribute.k2 != 123",   2,
+                       "\\(NOT, ATTR\\[k2\\]\\{ = 123 \\}\\)" },
                { "attribute.k1 != 'v1'",  2,
                        "\\(NOT, ATTR\\[k1\\]\\{ VALUE\\{ 'v1', \\(nil\\) \\} \\}\\)" },
                { "attribute.k1 != 'v2'",  3,