Improve release/versioning of Jungfraujoch repository

This commit is contained in:
2024-05-15 11:29:01 +02:00
parent 3693cae440
commit 91fd44bff7
282 changed files with 17363 additions and 27120 deletions

View File

@@ -1,6 +1,6 @@
// Copyright (2019-2023) Paul Scherrer Institute
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include "../common/StatusVector.h"
TEST_CASE("StatusVector_GetMeanPerBin","[StatusVector]") {
@@ -16,7 +16,7 @@ TEST_CASE("StatusVector_GetMeanPerBin","[StatusVector]") {
REQUIRE(status_out.size() == 3);
REQUIRE(status_out[0] == 11);
REQUIRE(status_out[1] == 0);
REQUIRE(status_out[2] == Approx((45 + 44 + 41) / 3.0));
REQUIRE(status_out[2] == Catch::Approx((45 + 44 + 41) / 3.0));
status_out = status_vector.GetMeanPerBin(500);
@@ -25,8 +25,8 @@ TEST_CASE("StatusVector_GetMeanPerBin","[StatusVector]") {
REQUIRE(status_out[1] == 0);
REQUIRE(status_out[2] == 0);
REQUIRE(status_out[3] == 0);
REQUIRE(status_out[4] == Approx(45));
REQUIRE(status_out[5] == Approx((44+41)/2.0));
REQUIRE(status_out[4] == Catch::Approx(45));
REQUIRE(status_out[5] == Catch::Approx((44+41)/2.0));
status_out = status_vector.GetMeanPerBin(1);
REQUIRE(status_out.size() == 2601);
@@ -117,10 +117,10 @@ TEST_CASE("StatusVector_Plot","[StatusVector]") {
REQUIRE(plot_out.size() == 1);
REQUIRE(plot_out[0].x.size() == 3);
REQUIRE(plot_out[0].y.size() == 3);
REQUIRE(plot_out[0].x[0] == Approx(500));
REQUIRE(plot_out[0].y[0] == Approx(11));
REQUIRE(plot_out[0].x[2] == Approx(2500));
REQUIRE(plot_out[0].y[2] == Approx((45 + 44 + 41) / 3.0));
REQUIRE(plot_out[0].x[0] == Catch::Approx(500));
REQUIRE(plot_out[0].y[0] == Catch::Approx(11));
REQUIRE(plot_out[0].x[2] == Catch::Approx(2500));
REQUIRE(plot_out[0].y[2] == Catch::Approx((45 + 44 + 41) / 3.0));
}
TEST_CASE("StatusVector_Plot_OneBin","[StatusVector]") {
@@ -131,8 +131,8 @@ TEST_CASE("StatusVector_Plot_OneBin","[StatusVector]") {
REQUIRE(plot_out.size() == 1);
REQUIRE(plot_out[0].x.size() == 1);
REQUIRE(plot_out[0].y.size() == 1);
REQUIRE(plot_out[0].x[0] == Approx(2.5));
REQUIRE(plot_out[0].y[0] == Approx(11));
REQUIRE(plot_out[0].x[0] == Catch::Approx(2.5));
REQUIRE(plot_out[0].y[0] == Catch::Approx(11));
}
@@ -144,9 +144,9 @@ TEST_CASE("StatusVector_Plot_NoBinning","[StatusVector]") {
REQUIRE(plot_out.size() == 1);
REQUIRE(plot_out[0].x.size() == 6);
REQUIRE(plot_out[0].y.size() == 6);
REQUIRE(plot_out[0].x[0] == Approx(0));
REQUIRE(plot_out[0].y[0] == Approx(0));
REQUIRE(plot_out[0].x[0] == Catch::Approx(0));
REQUIRE(plot_out[0].y[0] == Catch::Approx(0));
REQUIRE(plot_out[0].x[5] == Approx(5));
REQUIRE(plot_out[0].y[5] == Approx(11));
REQUIRE(plot_out[0].x[5] == Catch::Approx(5));
REQUIRE(plot_out[0].y[5] == Catch::Approx(11));
}