Skip to content

Commit

Permalink
test(geobase): Don't stop test execution on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
fuhlig1 authored and karabowi committed May 17, 2024
1 parent 338faa2 commit d1d5253
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/geobase/checks_FairGeoSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,25 @@ auto checkGeoSetNamingConventions(FairGeoSet& geo, const std::string& prefix, in
SECTION("construction")
{
// Check that members are correctly set by constructor
REQUIRE(geo.GetName() == prefix);
REQUIRE(geo.getMaxModules() == modules);
CHECK(geo.GetName() == prefix);
CHECK(geo.getMaxModules() == modules);
}

SECTION("name generation")
{
auto index = GENERATE(take(100, random(1, 1000)));
const auto name = fmt::format("{}{}", prefix, index + 1);

REQUIRE(geo.getModuleName(index) == name);
REQUIRE(geo.getEleName(index) == name);
CHECK(geo.getModuleName(index) == name);
CHECK(geo.getEleName(index) == name);
}

SECTION("name parsing")
{
auto index = GENERATE(take(100, random(1, 1000)));
const auto name = fmt::format("{}{}", prefix, index + 1);

REQUIRE(geo.getModNumInMod(name) == index);
CHECK(geo.getModNumInMod(name) == index);
}
}

Expand Down

0 comments on commit d1d5253

Please sign in to comment.