1234567891011121314151617181920212223 |
- #define CATCH_CONFIG_MAIN
- #include <catch2/catch.hpp>
- TEST_CASE("Tests that run") {
-
- CHECK(1 == 2);
- CHECK(1 == 1);
- CHECK(1 != 3);
- CHECK(1 == 4);
- }
- TEST_CASE("Tests that abort") {
-
-
- std::set_terminate([](){exit(1);});
- REQUIRE(1 == 1);
- REQUIRE(1 != 2);
- REQUIRE(1 == 3);
-
- REQUIRE(1 != 4);
- }
|