From 14004952e9d755a4f8fbcbbb5f7487065f5216df Mon Sep 17 00:00:00 2001 From: Wim Haeck Date: Tue, 11 Jun 2024 09:41:25 -0600 Subject: [PATCH] forgot a test --- src/resonanceReconstruction/rmatrix/test/CMakeLists.txt | 4 +--- src/resonanceReconstruction/rmatrix/test/rmatrix.test.cpp | 7 +++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/resonanceReconstruction/rmatrix/test/CMakeLists.txt b/src/resonanceReconstruction/rmatrix/test/CMakeLists.txt index 910e17ad..c8b41c6f 100644 --- a/src/resonanceReconstruction/rmatrix/test/CMakeLists.txt +++ b/src/resonanceReconstruction/rmatrix/test/CMakeLists.txt @@ -1,3 +1 @@ -add_executable( resonanceReconstruction.rmatrix.test rmatrix.test.cpp ) -target_link_libraries( resonanceReconstruction.rmatrix.test PUBLIC resonanceReconstruction ) -add_test( NAME resonanceReconstruction.rmatrix COMMAND resonanceReconstruction.rmatrix.test ) +add_cpp_test( rmatrix rmatrix.test.cpp ) diff --git a/src/resonanceReconstruction/rmatrix/test/rmatrix.test.cpp b/src/resonanceReconstruction/rmatrix/test/rmatrix.test.cpp index 73f109fa..958cca4b 100644 --- a/src/resonanceReconstruction/rmatrix/test/rmatrix.test.cpp +++ b/src/resonanceReconstruction/rmatrix/test/rmatrix.test.cpp @@ -1,6 +1,9 @@ -#define CATCH_CONFIG_MAIN +// include Catch2 +#include +#include +using Catch::Approx; -#include "catch.hpp" +// what we are testing #include "resonanceReconstruction/rmatrix.hpp" using namespace njoy::resonanceReconstruction;