Welcome to mirror list, hosted at ThFree Co, Russian Federation.

no_failures.cpp « all_features « examples - github.com/onqtam/doctest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ae74047eb771632a44662ccf070c62e60dc74246 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <doctest/doctest.h>

TEST_CASE("no checks") {}

TEST_CASE("simple check") {
    CHECK(1 == 1);
}

TEST_SUITE("some suite") {
    TEST_CASE("fails - and its allowed" * doctest::may_fail()) { FAIL(""); }
}

TEST_CASE("should fail and no output" * doctest::should_fail() * doctest::no_breaks() * doctest::no_output()) { FAIL(""); }