Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include/internal/catch_debug_console.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-07-04 17:45:30 +0200
committerMartin Hořeňovský2020-07-11 23:16:07 +0200
commitb79a83e4aa6641a00c32b760456507b1745fc06e (patch)
tree2c682d37803d5d40342df1d17402b79e77560ec3 /include/internal/catch_debug_console.cpp
parent89fe35d515973789710e9f26d1d389d9ef7ba1e6 (diff)
downloadcatch3-b79a83e4aa6641a00c32b760456507b1745fc06e.tar.gz
Modify generator tracking to allow GENERATEs between SECTIONs
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
Diffstat (limited to 'include/internal/catch_debug_console.cpp')
0 files changed, 0 insertions, 0 deletions