diff options
author | Jon Marius Venstad <jonmv@users.noreply.github.com> | 2021-03-16 13:03:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-16 13:03:56 +0100 |
commit | d2c61030d6c62b8c4889d3471d2ee5f17bb14a5f (patch) | |
tree | 60a9790b7223fce7f9da2c7355bde425968a763b /searchlib/src/test/java/com/yahoo/searchlib/rankingexpression/evaluation/EvaluationTestCase.java | |
parent | 700345986b877638da6ea8d8d7160ed50ea7cd5f (diff) |
Revert "Lesters/cell cast java"
Diffstat (limited to 'searchlib/src/test/java/com/yahoo/searchlib/rankingexpression/evaluation/EvaluationTestCase.java')
-rw-r--r-- | searchlib/src/test/java/com/yahoo/searchlib/rankingexpression/evaluation/EvaluationTestCase.java | 17 |
1 files changed, 0 insertions, 17 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 fae5a7a093c..123fa5ac43b 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 @@ -394,23 +394,6 @@ public class EvaluationTestCase { } @Test - public void testCellTypeCasting() { - EvaluationTester tester = new EvaluationTester(); - - tester.assertEvaluates("tensor<float>(x[3]):[1.0, 2.0, 3.0]", - "cell_cast(tensor0, float)", - "tensor<double>(x[3]):[1, 2, 3]"); - tester.assertEvaluates("tensor<float>():{1}", - "cell_cast(tensor0{x:1}, float)", - "tensor<double>(x{}):{1:1, 2:2, 3:3}"); - tester.assertEvaluates("tensor<float>(x[2]):[3,8]", - "cell_cast(tensor0 * tensor1, float)", - "tensor<float>(x[2]):[1,2]", - "tensor<double>(x[2]):[3,4]"); - } - - - @Test public void testMixedTensorType() throws ParseException { String expected = "tensor(x[1],y{},z[2]):{{x:0,y:a,z:0}:4.0,{x:0,y:a,z:1}:5.0,{x:0,y:b,z:0}:7.0,{x:0,y:b,z:1}:8.0}"; String a = "tensor(x[1],y{}):{ {x:0,y:a}:1, {x:0,y:b}:2 }"; |