blob: 3587dcb8757d82b07406f21c7e6376bc904df06a [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
Jan Kundráta33cf082019-03-28 11:55:57 +010019void waitForCompletionAndBitMore(const trompeloeil::sequence& seq);