catch2: download with CMake + update to recent Catch2

This commit is contained in:
2024-05-14 21:10:27 +02:00
parent 9f1b6a6e96
commit eb0e5daf8f
47 changed files with 222 additions and 18206 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
// Copyright (2019-2024) Paul Scherrer Institute
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include "../image_analysis/Regression.h"
@@ -14,6 +14,6 @@ TEST_CASE("Regression") {
y[i] = 7 * i + 5;
}
auto reg = regression(x, y);
REQUIRE(reg.intercept == Approx(5.0));
REQUIRE(reg.slope == Approx(7.0));
REQUIRE(reg.intercept == Catch::Approx(5.0));
REQUIRE(reg.slope == Catch::Approx(7.0));
}