diff options
| author | Leitwolf | 2026-10-25 10:31:36 +0300 |
|---|---|---|
| committer | GitHub | 2026-10-25 10:31:36 +0300 |
| commit | d2e3e074bb2e1b8ffd9fc990d0b87667ea602f58 (patch) | |
| tree | 0bce4462b2e190c39b3e1c5f697e3e4abd1a5e2a /docs/limitations.md | |
| parent | 13f81a480a93807c14dddb5abdb97355ced4d4c5 (diff) | |
| parent | 126dc333564cb72b5115d9a9242d66694694b6d0 (diff) | |
| download | catch3-d2e3e074bb2e1b8ffd9fc990d0b87667ea602f58.tar.gz | |
Merge pull request #18 from Progmasoft/build/catch3-identity
Give Catch3 its own build names and headers
Diffstat (limited to 'docs/limitations.md')
| -rw-r--r-- | docs/limitations.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/limitations.md b/docs/limitations.md index 7bb9c79b..2de96030 100644 --- a/docs/limitations.md +++ b/docs/limitations.md @@ -1,6 +1,6 @@ <a id="top"></a> -> **Catch3 compatibility reference:** This page describes the bundled Catch2-compatible API. Names such as `Catch2`, `catch2/`, and `Catch2::Catch2WithMain` remain where they are actual compatibility interfaces. See [Catch3 additions](progmasoft-catch3.md) for Progmasoft APIs. +> **Catch3 compatibility reference:** This page describes the test-writing API Catch3 shares with Catch2: the macros, such as `TEST_CASE` and `REQUIRE`, and the `Catch::` namespace keep Catch2's names. Headers and build names are Catch3's own (`<Progmasoft/Catch3/TestMacros.hpp>`, `find_package(Catch3)`, `Catch3::Catch3WithMain`). See [Catch3 additions](progmasoft-catch3.md) for Progmasoft APIs. # Known limitations @@ -94,7 +94,7 @@ error when preprocessor attempts to stringize a raw string literal to trigger the compilation error: ```cpp -#include <catch2/catch_test_macros.hpp> +#include <Progmasoft/Catch3/TestMacros.hpp> TEST_CASE("test") { CHECK(std::string(R"("\)") == "\"\\"); @@ -106,7 +106,7 @@ of the original expression by defining `CATCH_CONFIG_DISABLE_STRINGIFICATION`, like so: ```cpp #define CATCH_CONFIG_DISABLE_STRINGIFICATION -#include <catch2/catch_test_macros.hpp> +#include <Progmasoft/Catch3/TestMacros.hpp> TEST_CASE("test") { CHECK(std::string(R"("\)") == "\"\\"); @@ -126,7 +126,7 @@ with expansion: ### Clang/G++ -- skipping leaf sections after an exception Some versions of `libc++` and `libstdc++` (or their runtimes) have a bug with `std::uncaught_exception()` getting stuck returning `true` after rethrow, even if there are no active exceptions. One such case is this snippet, which skipped the sections "a" and "b", when compiled against `libcxxrt` from the master branch ```cpp -#include <catch2/catch_test_macros.hpp> +#include <Progmasoft/Catch3/TestMacros.hpp> TEST_CASE("a") { CHECK_THROWS(throw 3); |