blob: 8ee4071cc9e7038c41598e86061079e2185b6ffb [file] [log] [blame]
Jan Kundráta33cf082019-03-28 11:55:57 +01001#pragma once
2
3#include <doctest/doctest.h>
4#include <trompeloeil.hpp>
5
6#define SECTION(name) DOCTEST_SUBCASE(name)
7
8// https://github.com/onqtam/doctest/issues/216
9#undef REQUIRE_THROWS
10#undef REQUIRE_THROWS_AS
11#undef REQUIRE_THROWS_WITH
12#undef REQUIRE_NOTHROW
13#define REQUIRE_THROWS(expr) DOCTEST_REQUIRE_THROWS(static_cast<void>(expr))
14#define REQUIRE_THROWS_AS(expr, e) DOCTEST_REQUIRE_THROWS_AS(static_cast<void>(expr), e)
15#define REQUIRE_THROWS_WITH(expr, e) DOCTEST_REQUIRE_THROWS_WITH(static_cast<void>(expr), e)
16#define REQUIRE_NOTHROW(expr) DOCTEST_REQUIRE_NOTHROW(static_cast<void>(expr))
17
18extern template struct trompeloeil::reporter<trompeloeil::specialized>;
19
20void waitForCompletionAndBitMore(const trompeloeil::sequence& seq);