Skip to content

Commit

Permalink
Add coverage for CATCH_SYSTEM_ERROR.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmatson committed Oct 26, 2022
1 parent a560a9f commit 3b474ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/SelfTest/IntrospectiveTests/Details.tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ TEST_CASE("Check that our error handling macros throw the right exceptions", "[!
REQUIRE_THROWS_AS(CATCH_INTERNAL_ERROR(""), std::logic_error);
REQUIRE_THROWS_AS(CATCH_ERROR(""), std::domain_error);
REQUIRE_THROWS_AS(CATCH_RUNTIME_ERROR(""), std::runtime_error);
REQUIRE_THROWS_AS(CATCH_SYSTEM_ERROR(0, std::generic_category()), std::system_error);
REQUIRE_THROWS_AS([](){CATCH_ENFORCE(false, "");}(), std::domain_error);
REQUIRE_NOTHROW([](){CATCH_ENFORCE(true, "");}());
}
Expand Down

0 comments on commit 3b474ce

Please sign in to comment.