diff options
author | Jon Bratseth <bratseth@gmail.com> | 2023-02-07 11:30:35 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2023-02-07 11:45:12 +0100 |
commit | 4e77b912b2c85ef9a8d8fc3ba7e849699ce3a801 (patch) | |
tree | 4c1288f029eb8ef0d84a3b1a8b62d8c3ffae9904 /container-search/src/test | |
parent | 7499956ca4dcc7c7ae6a003a73e921b4b7b4fae1 (diff) |
Support configuring BCP structure
Diffstat (limited to 'container-search/src/test')
-rw-r--r-- | container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java b/container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java index bc9448f39d8..33cd2f48d46 100644 --- a/container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java +++ b/container-search/src/test/java/com/yahoo/search/yql/YqlParserTestCase.java @@ -241,6 +241,11 @@ public class YqlParserTestCase { } @Test + void testNonEquality() { + assertParse("select foo from bar where !(price = 500)", "-price:500"); + } + + @Test void testNegativeLessThan() { assertParse("select foo from bar where price < -500", "price:<-500"); assertParse("select foo from bar where -500 < price", "price:>-500"); |