summaryrefslogtreecommitdiffstats
path: root/searchlib/src/test
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@verizonmedia.com>2019-11-26 16:51:50 +0200
committerJon Bratseth <bratseth@verizonmedia.com>2019-11-26 16:51:50 +0200
commitf4203c3cc571722f08ee65047437c1290ed63f69 (patch)
tree7d06d17091a2e388e6771187a11cf4f4023a0c1e /searchlib/src/test
parent316c941e90f39d2e9bc46f12b96ca0f87471d1bd (diff)
Allow bound functions in tensor generate
Diffstat (limited to 'searchlib/src/test')
-rw-r--r--searchlib/src/test/java/com/yahoo/searchlib/rankingexpression/evaluation/EvaluationTestCase.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/searchlib/src/test/java/com/yahoo/searchlib/rankingexpression/evaluation/EvaluationTestCase.java b/searchlib/src/test/java/com/yahoo/searchlib/rankingexpression/evaluation/EvaluationTestCase.java
index a8afc230bde..05ad8c97c7f 100644
--- a/searchlib/src/test/java/com/yahoo/searchlib/rankingexpression/evaluation/EvaluationTestCase.java
+++ b/searchlib/src/test/java/com/yahoo/searchlib/rankingexpression/evaluation/EvaluationTestCase.java
@@ -358,6 +358,9 @@ public class EvaluationTestCase {
tester.assertEvaluates("500",
"join(tensor0, tensor1, f(x,y) (x*y)){tag2}",
"tensor(tag{}):{{tag:tag1}:10, {tag:tag2}:20}", "{25}");
+ tester.assertEvaluates("tensor(j[3]):[3, 3, 3]",
+ "tensor(j[3])(tensor0[2])",
+ "tensor(values[5]):[1, 2, 3, 4, 5]");
// tensor result dimensions are given from argument dimensions, not the resulting values
tester.assertEvaluates("tensor(x{}):{}", "tensor0 * tensor1", "{ {x:0}:1 }", "tensor(x{}):{ {x:1}:1 }");