diff options
Diffstat (limited to 'docs/other-macros.md')
-rw-r--r-- | docs/other-macros.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/other-macros.md b/docs/other-macros.md index 345234d5..994115f1 100644 --- a/docs/other-macros.md +++ b/docs/other-macros.md @@ -59,6 +59,8 @@ TEST_CASE( "SUCCEED showcase" ) { * `STATIC_REQUIRE` +> [Introduced](https://github.com/catchorg/Catch2/issues/1362) in Catch 2.4.2. + `STATIC_REQUIRE( expr )` is a macro that can be used the same way as a `static_assert`, but also registers the success with Catch2, so it is reported as a success at runtime. The whole check can also be deferred @@ -132,6 +134,8 @@ ANON_TEST_CASE() { * `DYNAMIC_SECTION` +> Introduced in Catch 2.3.0. + `DYNAMIC_SECTION` is a `SECTION` where the user can use `operator<<` to create the final name for that section. This can be useful with e.g. generators, or when creating a `SECTION` dynamically, within a loop. |