catch2: download with CMake + update to recent Catch2
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// Copyright (2019-2023) Paul Scherrer Institute
|
||||
|
||||
#include <catch2/catch.hpp>
|
||||
#include <catch2/catch_all.hpp>
|
||||
#include "../common/DiffractionSpot.h"
|
||||
|
||||
TEST_CASE("DiffractionSpot_ConvertToImageCoordinates", "[LinearAlgebra][Coord]") {
|
||||
@@ -15,7 +15,7 @@ TEST_CASE("DiffractionSpot_ConvertToImageCoordinates", "[LinearAlgebra][Coord]")
|
||||
REQUIRE(spot_1.Count() == 12 * 2 + 4 * 2);
|
||||
|
||||
spot_1.ConvertToImageCoordinates(experiment, 1);
|
||||
REQUIRE(spot_1.RawCoord().x == Approx(CONVERTED_MODULE_COLS + 8 + 800.5 + 6));
|
||||
REQUIRE(spot_1.RawCoord().y == Approx(CONVERTED_MODULE_LINES * 2 + 36 - 1 - 300.25 - 2));
|
||||
REQUIRE(spot_1.RawCoord().x == Catch::Approx(CONVERTED_MODULE_COLS + 8 + 800.5 + 6));
|
||||
REQUIRE(spot_1.RawCoord().y == Catch::Approx(CONVERTED_MODULE_LINES * 2 + 36 - 1 - 300.25 - 2));
|
||||
REQUIRE(spot_1.Count() == 12 * 2 + 4 * 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user