summaryrefslogtreecommitdiffstats
path: root/container-search/src/test
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2019-04-01 22:15:31 +0200
committerGitHub <noreply@github.com>2019-04-01 22:15:31 +0200
commit46b756d16093c0ef100b7f77f3f2dd661184aabb (patch)
tree3fe11e4f27025558172cc41c745153e8e7614d29 /container-search/src/test
parente6047b8f5cfe5a0c457788f6e552b13cc063aeb7 (diff)
parent4413b705880909a9dee941d9d9cb50043b56829d (diff)
Merge pull request #8984 from vespa-engine/bratseth/select-parse-boolean
Parse boolean comparisons
Diffstat (limited to 'container-search/src/test')
-rw-r--r--container-search/src/test/java/com/yahoo/select/SelectTestCase.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/container-search/src/test/java/com/yahoo/select/SelectTestCase.java b/container-search/src/test/java/com/yahoo/select/SelectTestCase.java
index 9fa222bafad..fa78fb75c57 100644
--- a/container-search/src/test/java/com/yahoo/select/SelectTestCase.java
+++ b/container-search/src/test/java/com/yahoo/select/SelectTestCase.java
@@ -621,6 +621,12 @@ public class SelectTestCase {
}
@Test
+ public void testEquals() {
+ assertParse("{\"equals\": [\"public\",true]}","public:true");
+ assertParse("{\"equals\": [\"public\",5]}","public:5");
+ }
+
+ @Test
public void testRegexp() {
QueryTree x = parseWhere("{ \"matches\" : [\"foo\", \"a b\"]}");
Item root = x.getRoot();