aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/select
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@verizonmedia.com>2019-11-07 13:03:01 +0100
committerJon Bratseth <bratseth@verizonmedia.com>2019-11-07 13:03:01 +0100
commit86c9c6916ca63c44534be8a9ae7f11bd14566712 (patch)
tree946e848adada9cb7f75823f09e73ee58346c7ea5 /container-search/src/test/java/com/yahoo/select
parentac9ae3c5cff5012350e389ce8024c0b137ca0ec5 (diff)
YQL parsing/serialization improvements
- Serialize annotated range and weightedset with bracing - Parse Infinity in ranges - Better error messages in range parsing
Diffstat (limited to 'container-search/src/test/java/com/yahoo/select')
-rw-r--r--container-search/src/test/java/com/yahoo/select/SelectTestCase.java4
1 files changed, 2 insertions, 2 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 fa78fb75c57..261069ea1c3 100644
--- a/container-search/src/test/java/com/yahoo/select/SelectTestCase.java
+++ b/container-search/src/test/java/com/yahoo/select/SelectTestCase.java
@@ -450,7 +450,7 @@ public class SelectTestCase {
@Test
public void testRangeIllegalArguments() {
assertParseFail("{ \"range\": [\"baz\", { \">=\": \"cox\", \"<=\": -1 }] }",
- new IllegalArgumentException("Expected operator LITERAL, got READ_FIELD."));
+ new IllegalArgumentException("Expected a numeric argument to range, but got the string 'cox'"));
}
@Test
@@ -490,7 +490,7 @@ public class SelectTestCase {
assertParse("{ \"weightedSet\" : [\"description\", {\"a\":1, \"b\":2} ]}",
"WEIGHTEDSET description{[1]:\"a\",[2]:\"b\"}");
assertParseFail("{ \"weightedSet\" : [\"description\", {\"a\":\"g\", \"b\":2} ]}",
- new IllegalArgumentException("Expected operator LITERAL, got READ_FIELD."));
+ new IllegalArgumentException("Expected an integer argument, but got the string 'g'"));
assertParseFail("{ \"weightedSet\" : [\"description\" ]}",
new IllegalArgumentException("Expected 2 arguments, got 1."));
}