Skip to content

Commit

Permalink
Slightly increase radius in DBSCAN test
Browse files Browse the repository at this point in the history
This fixes the RelWithDebInfo test on PowerPC architecture.

I don't think we should be in business trying to reproduce exact
arithmetic round off errors in the tests.
  • Loading branch information
aprokop committed Dec 10, 2024
1 parent 37adf1a commit bdd46a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tstDBSCAN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(dbscan, DeviceType, ARBORX_DEVICE_TYPES)
{
auto points = toView<DeviceType, Point>({{{0, 0, 0}}, {{1, 1, 1}}});

auto r = std::sqrt(3);
auto r = std::sqrt(3.1f);

BOOST_TEST(verifyDBSCAN(space, points, r - 0.1, 2,
dbscan(space, points, r - 0.1, 2, params)));
Expand All @@ -192,7 +192,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(dbscan, DeviceType, ARBORX_DEVICE_TYPES)
auto points = toView<DeviceType, Point>(
{{{0, 0, 0}}, {{1, 1, 1}}, {{3, 3, 3}}, {{6, 6, 6}}});

auto r = std::sqrt(3);
auto r = std::sqrt(3.1f);

BOOST_TEST(verifyDBSCAN(space, points, r, 2,
dbscan(space, points, r, 2, params)));
Expand Down

0 comments on commit bdd46a6

Please sign in to comment.