From 5792d3a23890edaa5d32b0f6bfc726c3e9956f3a Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Wed, 3 Apr 2019 21:30:28 +0200 Subject: Add tensor value type --- .../java/com/yahoo/searchdefinition/processing/TensorFieldTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config-model/src/test/java/com/yahoo/searchdefinition/processing/TensorFieldTestCase.java') diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/processing/TensorFieldTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/processing/TensorFieldTestCase.java index 2fcf5809ea5..f53ca15635f 100644 --- a/config-model/src/test/java/com/yahoo/searchdefinition/processing/TensorFieldTestCase.java +++ b/config-model/src/test/java/com/yahoo/searchdefinition/processing/TensorFieldTestCase.java @@ -39,7 +39,7 @@ public class TensorFieldTestCase { @Test public void requireThatIllegalTensorTypeSpecThrowsException() throws ParseException { exception.expect(IllegalArgumentException.class); - exception.expectMessage("Field type: Illegal tensor type spec: Failed parsing element 'invalid' in type spec 'tensor(invalid)'"); + exception.expectMessage("Field type: Illegal tensor type spec: A tensor type spec must be on the form tensor[]?(dimensionidentifier[{}|[length?]*), but was 'tensor(invalid)'. Dimension 'invalid' is on the wrong format. Examples: tensor(x[]), tensor(name{}, x[10])"); SearchBuilder.createFromString(getSd("field f1 type tensor(invalid) { indexing: attribute }")); } -- cgit v1.2.3