Skip to content

Commit

Permalink
Run DBSCAN test for both float and double
Browse files Browse the repository at this point in the history
  • Loading branch information
aprokop committed Jan 15, 2025
1 parent 561ad29 commit d332e67
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions test/tstDBSCAN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ using ArborXTest::toView;

BOOST_AUTO_TEST_SUITE(DBSCAN)

BOOST_AUTO_TEST_CASE_TEMPLATE(dbscan_verifier, DeviceType, ARBORX_DEVICE_TYPES)
template <typename DeviceType, typename Coordinate>
void dbscan_verifier_f()
{
using ExecutionSpace = typename DeviceType::execution_space;
using Coordinate = float;
using Point = ArborX::Point<3, Coordinate>;
using ArborX::Details::verifyDBSCAN;

Expand Down Expand Up @@ -152,10 +152,10 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(dbscan_verifier, DeviceType, ARBORX_DEVICE_TYPES)
}
}

BOOST_AUTO_TEST_CASE_TEMPLATE(dbscan, DeviceType, ARBORX_DEVICE_TYPES)
template <typename DeviceType, typename Coordinate>
void dbscan_f()
{
using ExecutionSpace = typename DeviceType::execution_space;
using Coordinate = float;
using ArborX::dbscan;
using ArborX::Details::verifyDBSCAN;
using Point = ArborX::Point<3, Coordinate>;
Expand Down Expand Up @@ -264,4 +264,16 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(dbscan, DeviceType, ARBORX_DEVICE_TYPES)
}
}

BOOST_AUTO_TEST_CASE_TEMPLATE(dbscan_verifier, DeviceType, ARBORX_DEVICE_TYPES)
{
dbscan_verifier_f<DeviceType, float>();
dbscan_verifier_f<DeviceType, double>();
}

BOOST_AUTO_TEST_CASE_TEMPLATE(dbscan, DeviceType, ARBORX_DEVICE_TYPES)
{
dbscan_f<DeviceType, float>();
dbscan_f<DeviceType, double>();
}

BOOST_AUTO_TEST_SUITE_END()

0 comments on commit d332e67

Please sign in to comment.