blob: 8fcfb5a638b60fd2e5d66c43fa02c8a2c4816ea9 [file] [log] [blame]
Tomáš Pecka5123e002020-06-05 15:29:21 +02001#pragma once
2
3#include <doctest/doctest.h>
4#include <doctest/trompeloeil.hpp>
5#include <trompeloeil.hpp>
Tomáš Pecka5123e002020-06-05 15:29:21 +02006#define SECTION(name) DOCTEST_SUBCASE(name)
7
8using doctest::Approx;
9
10// https://github.com/onqtam/doctest/issues/216
11#undef REQUIRE_THROWS
12#undef REQUIRE_THROWS_AS
13#undef REQUIRE_THROWS_WITH
14#undef REQUIRE_NOTHROW
15#define REQUIRE_THROWS(expr) DOCTEST_REQUIRE_THROWS(static_cast<void>(expr))
16#define REQUIRE_THROWS_AS(expr, e) DOCTEST_REQUIRE_THROWS_AS(static_cast<void>(expr), e)
17#define REQUIRE_THROWS_WITH(expr, e) DOCTEST_REQUIRE_THROWS_WITH(static_cast<void>(expr), e)
18#define REQUIRE_NOTHROW(expr) DOCTEST_REQUIRE_NOTHROW(static_cast<void>(expr))
19
Tomáš Pecka0a2e8902020-06-09 21:11:20 +020020extern template struct trompeloeil::reporter<trompeloeil::specialized>;
21
22void waitForCompletionAndBitMore(const trompeloeil::sequence& seq);