summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/tensor
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-11-26 13:18:23 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-11-26 13:18:23 +0000
commit98f899747326afb4b7f2f479db9b47dccdf12008 (patch)
treef80c125cbe48a8675deb076892e926e3e2535271 /searchlib/src/tests/tensor
parentef0b1301517fd689f617e0cafb4afe283b6483fc (diff)
Both arguments to distancecalculations will always be the same and have expected type, also for Int8Float.
Diffstat (limited to 'searchlib/src/tests/tensor')
-rw-r--r--searchlib/src/tests/tensor/distance_functions/distance_functions_test.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/searchlib/src/tests/tensor/distance_functions/distance_functions_test.cpp b/searchlib/src/tests/tensor/distance_functions/distance_functions_test.cpp
index a54f981352b..f0e156a96ed 100644
--- a/searchlib/src/tests/tensor/distance_functions/distance_functions_test.cpp
+++ b/searchlib/src/tests/tensor/distance_functions/distance_functions_test.cpp
@@ -71,7 +71,6 @@ TEST(DistanceFunctionsTest, euclidean_int8_smoketest)
auto euclid = make_distance_function(DistanceMetric::Euclidean, ct);
- std::vector<double> p00{0.0, 0.0, 0.0};
std::vector<Int8Float> p0{0.0, 0.0, 0.0};
std::vector<Int8Float> p1{1.0, 0.0, 0.0};
std::vector<Int8Float> p5{0.0,-1.0, 0.0};
@@ -85,9 +84,6 @@ TEST(DistanceFunctionsTest, euclidean_int8_smoketest)
EXPECT_DOUBLE_EQ(12.0, euclid->calc(t(p1), t(p7)));
EXPECT_DOUBLE_EQ(14.0, euclid->calc(t(p5), t(p7)));
- EXPECT_DOUBLE_EQ(1.0, euclid->calc(t(p00), t(p1)));
- EXPECT_DOUBLE_EQ(1.0, euclid->calc(t(p00), t(p5)));
- EXPECT_DOUBLE_EQ(9.0, euclid->calc(t(p00), t(p7)));
}
TEST(DistanceFunctionsTest, angular_gives_expected_score)