mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-19 18:47:13 +02:00
removed cluster_2x2 and cluster3x3 specializations
All checks were successful
Build on RHEL9 / buildh (push) Successful in 1m58s
All checks were successful
Build on RHEL9 / buildh (push) Successful in 1m58s
This commit is contained in:
@ -14,19 +14,6 @@
|
||||
|
||||
using namespace aare;
|
||||
|
||||
TEST_CASE("Correct Instantiation of Cluster and ClusterVector",
|
||||
"[.cluster][.instantiation]") {
|
||||
|
||||
CHECK(is_valid_cluster<double, 3, 3>);
|
||||
CHECK(is_valid_cluster<double, 3, 2>);
|
||||
CHECK(not is_valid_cluster<int, 0, 0>);
|
||||
CHECK(not is_valid_cluster<std::string, 2, 2>);
|
||||
CHECK(not is_valid_cluster<int, 2, 2, double>);
|
||||
|
||||
CHECK(not is_cluster_v<int>);
|
||||
CHECK(is_cluster_v<Cluster<int, 3, 3>>);
|
||||
}
|
||||
|
||||
TEST_CASE("Test sum of Cluster", "[.cluster]") {
|
||||
Cluster<int, 2, 2> cluster{0, 0, {1, 2, 3, 4}};
|
||||
|
||||
|
@ -311,19 +311,19 @@ TEST_CASE("Write cluster with potential padding", "[.files][.ClusterFile]") {
|
||||
|
||||
CHECK(read_cluster_vector.at(0).x == clustervec.at(0).x);
|
||||
CHECK(read_cluster_vector.at(0).y == clustervec.at(0).y);
|
||||
CHECK(std::equal(clustervec.at(0).data, clustervec.at(0).data + 9,
|
||||
read_cluster_vector.at(0).data, [](double a, double b) {
|
||||
return std::abs(a - b) <
|
||||
std::numeric_limits<double>::epsilon();
|
||||
}));
|
||||
CHECK(std::equal(
|
||||
clustervec.at(0).data.begin(), clustervec.at(0).data.end(),
|
||||
read_cluster_vector.at(0).data.begin(), [](double a, double b) {
|
||||
return std::abs(a - b) < std::numeric_limits<double>::epsilon();
|
||||
}));
|
||||
|
||||
CHECK(read_cluster_vector.at(1).x == clustervec.at(1).x);
|
||||
CHECK(read_cluster_vector.at(1).y == clustervec.at(1).y);
|
||||
CHECK(std::equal(clustervec.at(1).data, std::end(clustervec.at(1).data),
|
||||
read_cluster_vector.at(1).data, [](double a, double b) {
|
||||
return std::abs(a - b) <
|
||||
std::numeric_limits<double>::epsilon();
|
||||
}));
|
||||
CHECK(std::equal(
|
||||
clustervec.at(1).data.begin(), clustervec.at(1).data.end(),
|
||||
read_cluster_vector.at(1).data.begin(), [](double a, double b) {
|
||||
return std::abs(a - b) < std::numeric_limits<double>::epsilon();
|
||||
}));
|
||||
}
|
||||
|
||||
TEST_CASE("Read frame and modify cluster data", "[.files][.ClusterFile]") {
|
||||
|
Reference in New Issue
Block a user