summaryrefslogtreecommitdiffstats
path: root/searchlib/src/test
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@verizonmedia.com>2019-11-26 12:50:00 +0200
committerJon Bratseth <bratseth@verizonmedia.com>2019-11-26 12:50:00 +0200
commitb85ad56773d5bb675dd0c7fc437bcf130cb8a15d (patch)
tree95112c68709744a71dd4ec53a0841708203a22be /searchlib/src/test
parent2b59a443c1c37dcdcc5d77fe13b93b5ce383fee2 (diff)
Composite value function test
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 30e35139edc..a8afc230bde 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
@@ -355,6 +355,9 @@ public class EvaluationTestCase {
tester.assertEvaluates("0",
"reduce(join(tensor0, tensor1, f(x,y) (if(x > y, 1.0, 0.0))), sum, tag) == reduce(tensor0, count, tag)",
"tensor(tag{}):{{tag:tag1}:10, {tag:tag2}:20}", "{25}");
+ tester.assertEvaluates("500",
+ "join(tensor0, tensor1, f(x,y) (x*y)){tag2}",
+ "tensor(tag{}):{{tag:tag1}:10, {tag:tag2}:20}", "{25}");
// 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 }");