IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 55fdcff2 authored by ralfulrich's avatar ralfulrich Committed by Ralf Ulrich
Browse files

improve coverage

parent dad9c9ec
No related branches found
No related tags found
1 merge request!343Resolve "CorsikaFenvFallback"
...@@ -218,6 +218,17 @@ TEST_CASE("Combined Stack", "[stack]") { ...@@ -218,6 +218,17 @@ TEST_CASE("Combined Stack", "[stack]") {
CHECK(s.getEntries() == 0); CHECK(s.getEntries() == 0);
CHECK(s.isEmpty()); CHECK(s.isEmpty());
} }
SECTION("exceptions") {
StackTest s;
auto p1 = s.addParticle(std::tuple{9.9});
auto p2 = s.addParticle(std::tuple{9.9});
++p2;
CHECK_THROWS(s.copy(p1, p2));
CHECK_THROWS(s.swap(p1, p2));
CHECK(s.getSize() == 2);
}
} }
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
...@@ -288,7 +299,6 @@ using StackTest2 = CombinedStack<typename StackTest::stack_implementation_type, ...@@ -288,7 +299,6 @@ using StackTest2 = CombinedStack<typename StackTest::stack_implementation_type,
TEST_CASE("Combined Stack - multi", "[stack]") { TEST_CASE("Combined Stack - multi", "[stack]") {
logging::set_level(logging::level::info); logging::set_level(logging::level::info);
corsika_logger->set_pattern("[%n:%^%-8l%$] custom pattern: %v");
SECTION("create secondaries") { SECTION("create secondaries") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment