aare/src/Cluster.test.cpp
Mazzoleni Alice Francesca c49a2fdf8e
All checks were successful
Build on RHEL9 / buildh (push) Successful in 1m58s
removed cluster_2x2 and cluster3x3 specializations
2025-04-16 16:40:42 +02:00

21 lines
568 B
C++

/************************************************
* @file test-Cluster.cpp
* @short test case for generic Cluster, ClusterVector, and calculate_eta2
***********************************************/
#include "aare/Cluster.hpp"
#include "aare/CalculateEta.hpp"
#include "aare/ClusterFile.hpp"
// #include "catch.hpp"
#include <array>
#include <catch2/catch_all.hpp>
#include <catch2/catch_test_macros.hpp>
using namespace aare;
TEST_CASE("Test sum of Cluster", "[.cluster]") {
Cluster<int, 2, 2> cluster{0, 0, {1, 2, 3, 4}};
CHECK(cluster.sum() == 10);
}