Stefan | 8f63ba4 | 2021-12-09 16:01:47 +0100 | [diff] [blame] | 1 | #include <doctest/doctest.h> |
2 | |||||
3 | TEST_CASE("no checks") {} | ||||
4 | |||||
5 | TEST_CASE("simple check") { | ||||
6 | CHECK(1 == 1); | ||||
7 | } | ||||
8 | |||||
9 | TEST_SUITE("some suite") { | ||||
10 | TEST_CASE("fails - and its allowed" * doctest::may_fail()) { FAIL(""); } | ||||
11 | } | ||||
12 | |||||
13 | TEST_CASE("should fail and no output" * doctest::should_fail() * doctest::no_breaks() * doctest::no_output()) { FAIL(""); } |