blob: 55469299b5c74dc1b04f8a55f174669702f5ffc1 [file] [log] [blame]
Jan Kundráta33cf082019-03-28 11:55:57 +01001#pragma once
2
3#include <doctest/doctest.h>
Jan Kundrát8dcf0432020-01-17 00:44:38 +01004#include <doctest/trompeloeil.hpp>
Jan Kundráta33cf082019-03-28 11:55:57 +01005#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
19extern template struct trompeloeil::reporter<trompeloeil::specialized>;
20
21void waitForCompletionAndBitMore(const trompeloeil::sequence& seq);