catch2: download with CMake + update to recent Catch2
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user