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/DetectorSetup.h"
|
||||
|
||||
TEST_CASE("DetectorSetup_MismatchInSize") {
|
||||
@@ -15,7 +15,7 @@ TEST_CASE("DetectorSetup_ProtoBuf") {
|
||||
REQUIRE(setup.GetDescription() == "JF");
|
||||
REQUIRE(setup.GetDetectorModuleHostname().size() == 4);
|
||||
REQUIRE(setup.GetDetectorModuleHostname()[3] == "mx4");
|
||||
REQUIRE(setup.GetPixelSize_mm() == Approx(0.075));
|
||||
REQUIRE(setup.GetPixelSize_mm() == Catch::Approx(0.075));
|
||||
REQUIRE(setup.GetModulesNum() == 4);
|
||||
REQUIRE(setup.GetGeometry().GetModulesNum() == 4);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user