catch2: download with CMake + update to recent Catch2

This commit is contained in:
2024-05-14 21:31:34 +02:00
parent 9f1b6a6e96
commit eb0e5daf8f
47 changed files with 222 additions and 18206 deletions
+5 -5
View File
@@ -1,6 +1,6 @@
// Copyright (2019-2023) Paul Scherrer Institute
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include "../receiver/JFJochReceiverTest.h"
#include "../acquisition_device/HLSSimulatedDevice.h"
@@ -442,10 +442,10 @@ TEST_CASE("JFJochReceiverTest_PedestalG0_StorageCell", "[JFJochReceiver]") {
JFModulePedestal out_pedestal_2 = output.pedestal_result[2];
JFModulePedestal out_pedestal_3 = output.pedestal_result[3];
REQUIRE(out_pedestal_0.Mean() == Approx(5670));
REQUIRE(out_pedestal_1.Mean() == Approx(4560));
REQUIRE(out_pedestal_2.Mean() == Approx(3450));
REQUIRE(out_pedestal_3.Mean() == Approx(2000));
REQUIRE(out_pedestal_0.Mean() == Catch::Approx(5670));
REQUIRE(out_pedestal_1.Mean() == Catch::Approx(4560));
REQUIRE(out_pedestal_2.Mean() == Catch::Approx(3450));
REQUIRE(out_pedestal_3.Mean() == Catch::Approx(2000));
}
TEST_CASE("JFJochReceiverTest_PedestalG1_NoFrames", "[JFJochReceiver]") {