diff --git a/test/QueryPlannerTest.cpp b/test/QueryPlannerTest.cpp index 2369c593af..93b503d1f4 100644 --- a/test/QueryPlannerTest.cpp +++ b/test/QueryPlannerTest.cpp @@ -1657,6 +1657,9 @@ TEST(QueryPlanner, SpatialJoinService) { // TODO change / add tests + // TODO Migrate tests from (SpatialJoin, maxDistanceParsingTest) + // here + AD_EXPECT_THROW_WITH_MESSAGE( h::expect("SELECT ?x ?y WHERE {" "?x

?y." diff --git a/test/engine/SpatialJoinAlgorithmsTest.cpp b/test/engine/SpatialJoinAlgorithmsTest.cpp index 312cadf020..4d3d7982ad 100644 --- a/test/engine/SpatialJoinAlgorithmsTest.cpp +++ b/test/engine/SpatialJoinAlgorithmsTest.cpp @@ -107,7 +107,7 @@ class SpatialJoinParamTest : public ::testing::TestWithParam { for (size_t i = 0; i < vec.size(); ++i) { EXPECT_STREQ(vec.at(i).c_str(), expectedOutput.at(i).c_str()); }*/ - + // TODO double dist ... ? EXPECT_THAT(vec, ::testing::UnorderedElementsAreArray(expectedOutput)); } @@ -277,7 +277,8 @@ auto expectedDist = [](const GeoPoint& p1, const GeoPoint& p2) { auto p1_ = S2Point{S2LatLng::FromDegrees(p1.getLat(), p1.getLng())}; auto p2_ = S2Point{S2LatLng::FromDegrees(p2.getLat(), p2.getLng())}; - return std::to_string(static_cast(S2Earth::ToMeters(S1Angle(p1_, p2_)))); + // TODO + return std::to_string(S2Earth::ToKm(S1Angle(p1_, p2_))); }; // Places for testing