mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-19 03:15:40 +02:00
Add STATIC_REQUIRE assertion
By default, it expands into a `static_assert` + `SUCCEED` pair, but it can also be deferred to runtime by defining `CATCH_CONFIG_RUNTIME_STATIC_REQUIRE`, which causes it to expand into plain old `REQUIRE`. Closes #1362 Closes #1356
This commit is contained in:
@@ -1098,6 +1098,6 @@ due to unexpected exception with message:
|
||||
Why would you throw a std::string?
|
||||
|
||||
===============================================================================
|
||||
test cases: 214 | 161 passed | 49 failed | 4 failed as expected
|
||||
assertions: 1229 | 1100 passed | 108 failed | 21 failed as expected
|
||||
test cases: 215 | 162 passed | 49 failed | 4 failed as expected
|
||||
assertions: 1231 | 1102 passed | 108 failed | 21 failed as expected
|
||||
|
||||
|
Reference in New Issue
Block a user