Select Git revision
test_OFStream.cpp
-
Stéphane Del Pino authored
Actually, even setting files attributes to immutable, CI still succeeds at creating the file. This make the failure test to fail...
Stéphane Del Pino authoredActually, even setting files attributes to immutable, CI still succeeds at creating the file. This make the failure test to fail...
test_ReproducibleSumManager.cpp 616 B
#include <catch2/catch_test_macros.hpp>
#include <catch2/matchers/catch_matchers_all.hpp>
#include <utils/ReproducibleSumManager.hpp>
// clazy:excludeall=non-pod-global-static
TEST_CASE("ReproducibleSumManager", "[utils]")
{
SECTION("control settings")
{
const bool init_value = ReproducibleSumManager::reproducibleSums();
ReproducibleSumManager::setReproducibleSums(not init_value);
REQUIRE(init_value == not ReproducibleSumManager::reproducibleSums());
ReproducibleSumManager::setReproducibleSums(init_value);
REQUIRE(init_value == ReproducibleSumManager::reproducibleSums());
}
}