From 35fc569631924751aace3e366915838adf5b69be Mon Sep 17 00:00:00 2001 From: Andrey Prokopenko Date: Mon, 9 Dec 2024 20:20:20 -0500 Subject: [PATCH] Slightly increase radius in DBSCAN test 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. --- test/tstDBSCAN.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tstDBSCAN.cpp b/test/tstDBSCAN.cpp index 194cab196..0d18bfa98 100644 --- a/test/tstDBSCAN.cpp +++ b/test/tstDBSCAN.cpp @@ -168,7 +168,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(dbscan, DeviceType, ARBORX_DEVICE_TYPES) { auto points = toView({{{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))); @@ -192,7 +192,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(dbscan, DeviceType, ARBORX_DEVICE_TYPES) auto points = toView( {{{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)));