mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-17 03:02:24 +01:00
b79a83e4aa
This means that code such as ```cpp TEST_CASE() { SECTION("first") { SUCCEED(); } auto _ = GENERATE(1, 2); SECTION("second") { SUCCEED(); } } ``` will run and report 3 assertions, 1 from section "first" and 2 from section "second". This also applies for greater and potentially more confusing nesting, but fundamentally it is up to the user to avoid overly complex and confusing nestings, just as with `SECTION`s. The old behaviour of `GENERATE` as first thing in a `TEST_CASE`, `GENERATE` not followed by a `SECTION`, etc etc should be unchanged. Closes #1938 |
||
---|---|---|
.. | ||
Approx.tests.cpp | ||
BDD.tests.cpp | ||
Benchmark.tests.cpp | ||
Class.tests.cpp | ||
Compilation.tests.cpp | ||
Condition.tests.cpp | ||
Decomposition.tests.cpp | ||
EnumToString.tests.cpp | ||
Exception.tests.cpp | ||
Generators.tests.cpp | ||
Matchers.tests.cpp | ||
Message.tests.cpp | ||
Misc.tests.cpp | ||
ToStringByte.tests.cpp | ||
ToStringChrono.tests.cpp | ||
ToStringGeneral.tests.cpp | ||
ToStringOptional.tests.cpp | ||
ToStringPair.tests.cpp | ||
ToStringTuple.tests.cpp | ||
ToStringVariant.tests.cpp | ||
ToStringVector.tests.cpp | ||
ToStringWhich.tests.cpp | ||
Tricky.tests.cpp | ||
VariadicMacros.tests.cpp |