aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/select
diff options
context:
space:
mode:
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."));
}