Jan Kundrát | a33cf08 | 2019-03-28 11:55:57 +0100 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <doctest/doctest.h> |
Jan Kundrát | 8dcf043 | 2020-01-17 00:44:38 +0100 | [diff] [blame] | 4 | #include <doctest/trompeloeil.hpp> |
Jan Kundrát | a33cf08 | 2019-03-28 11:55:57 +0100 | [diff] [blame] | 5 | #include <trompeloeil.hpp> |
| 6 | |
| 7 | #define SECTION(name) DOCTEST_SUBCASE(name) |
| 8 | |
| 9 | // https://github.com/onqtam/doctest/issues/216 |
| 10 | #undef REQUIRE_THROWS |
| 11 | #undef REQUIRE_THROWS_AS |
| 12 | #undef REQUIRE_THROWS_WITH |
| 13 | #undef REQUIRE_NOTHROW |
| 14 | #define REQUIRE_THROWS(expr) DOCTEST_REQUIRE_THROWS(static_cast<void>(expr)) |
| 15 | #define REQUIRE_THROWS_AS(expr, e) DOCTEST_REQUIRE_THROWS_AS(static_cast<void>(expr), e) |
| 16 | #define REQUIRE_THROWS_WITH(expr, e) DOCTEST_REQUIRE_THROWS_WITH(static_cast<void>(expr), e) |
| 17 | #define REQUIRE_NOTHROW(expr) DOCTEST_REQUIRE_NOTHROW(static_cast<void>(expr)) |
| 18 | |
Jan Kundrát | a33cf08 | 2019-03-28 11:55:57 +0100 | [diff] [blame] | 19 | void waitForCompletionAndBitMore(const trompeloeil::sequence& seq); |