Skip to content

Commit

Permalink
✅ Fix distance_map tests based on the changes made to `twoddwave_di…
Browse files Browse the repository at this point in the history
…stance`
  • Loading branch information
marcelwa committed Jul 25, 2023
1 parent fefa907 commit df8d05c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/algorithms/path_finding/distance_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ TEST_CASE("Distance map", "[distance-map]")
layout.foreach_coordinate(
[&layout, &dist_map, &dist_map_func, &c1, src](const auto& c2, const unsigned tgt)
{
CHECK(dist_map[src][tgt] == twoddwave_distance(layout, c1, c2));
CHECK(dist_map[src][tgt] == a_star_distance(layout, c1, c2));
CHECK(dist_map[src][tgt] == dist_map_func(layout, c1, c2));
});
});
Expand Down Expand Up @@ -111,7 +111,7 @@ TEST_CASE("Sparse distance map", "[distance-map]")
layout.foreach_coordinate(
[&layout, &dist_map, &dist_map_func, &c1](const auto& c2)
{
CHECK(dist_map.at({c1, c2}) == twoddwave_distance(layout, c1, c2));
CHECK(dist_map.at({c1, c2}) == a_star_distance(layout, c1, c2));
CHECK(dist_map.at({c1, c2}) == dist_map_func(layout, c1, c2));
});
});
Expand Down Expand Up @@ -188,7 +188,7 @@ TEST_CASE("Smart distance cache functor", "[distance-map]")
{
layout.foreach_coordinate(
[&layout, &dist_map_func, &c1](const auto& c2)
{ CHECK(dist_map_func(layout, c1, c2) == twoddwave_distance(layout, c1, c2)); });
{ CHECK(dist_map_func(layout, c1, c2) == a_star_distance(layout, c1, c2)); });
});

// check that the cached distances are correct
Expand All @@ -197,7 +197,7 @@ TEST_CASE("Smart distance cache functor", "[distance-map]")
{
layout.foreach_coordinate(
[&layout, &dist_map_func, &c1](const auto& c2)
{ CHECK(dist_map_func(layout, c1, c2) == twoddwave_distance(layout, c1, c2)); });
{ CHECK(dist_map_func(layout, c1, c2) == a_star_distance(layout, c1, c2)); });
});
}
SECTION("USE clocking")
Expand Down

0 comments on commit df8d05c

Please sign in to comment.