Martin Hořeňovský
b79a83e4aa
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
2020-07-11 23:16:07 +02:00
..
2020-05-22 10:05:34 +02:00
2019-10-04 13:28:43 +02:00
2018-09-03 10:20:58 +02:00
2020-04-21 15:31:15 +02:00
2018-07-23 14:04:43 +02:00
2017-08-09 10:29:05 +01:00
2019-09-08 21:01:33 +02:00
2017-11-13 12:49:13 +01:00
2018-07-23 14:04:43 +02:00
2019-10-13 20:37:07 +02:00
2020-03-19 13:32:45 +01:00
2017-09-07 17:25:15 +02:00
2020-07-06 11:35:02 +02:00
2017-09-07 11:24:33 +01:00
2019-09-08 18:20:49 +02:00
2019-09-08 18:20:49 +02:00
2020-05-09 18:23:12 +02:00
2020-07-06 11:35:02 +02:00
2020-07-06 11:35:02 +02:00
2020-01-25 09:01:04 +01:00
2018-02-01 14:58:33 +00:00
2019-10-07 19:56:23 +02:00
2019-10-20 17:27:09 +02:00
2019-09-06 12:44:06 +02:00
2017-08-29 13:51:55 +02:00
2020-03-28 18:00:42 +01:00
2020-07-01 19:28:50 +02:00
2017-09-07 17:25:15 +02:00
2020-04-21 19:27:12 +02:00
2020-02-03 09:33:42 +01:00
2019-06-14 19:13:50 +02:00
2019-08-09 10:50:53 +02:00
2020-01-25 09:01:04 +01:00
2019-09-08 14:14:46 +02:00
2017-07-06 22:28:42 +02:00
2017-07-06 22:28:42 +02:00
2018-12-18 20:19:39 +01:00
2018-07-12 14:27:06 +02:00
2017-11-14 20:42:58 +01:00
2019-08-06 19:17:16 -05:00
2018-02-23 14:56:07 +01:00
2019-10-28 15:15:13 +01:00
2019-10-26 20:52:09 +02:00
2020-06-01 19:06:51 +02:00
2020-06-01 19:06:51 +02:00
2017-09-07 17:25:15 +02:00
2017-09-07 17:25:15 +02:00
2020-06-01 19:06:51 +02:00
2019-09-08 14:25:23 +02:00
2020-07-06 11:35:02 +02:00
2019-09-08 14:14:46 +02:00
2019-09-08 14:25:23 +02:00
2020-04-21 15:31:15 +02:00
2019-01-31 10:43:06 +01:00
2019-09-08 14:25:23 +02:00
2019-04-04 15:55:46 +01:00
2018-04-07 12:25:03 +02:00
2019-10-19 21:14:06 +02:00
2019-09-08 14:25:23 +02:00
2017-08-30 15:53:39 +02:00
2017-07-27 11:55:30 +02:00
2019-09-08 14:25:23 +02:00
2019-08-06 20:51:19 +02:00
2018-10-18 11:47:21 +02:00
2018-10-18 11:47:21 +02:00
2020-02-08 14:27:40 +01:00
2019-02-08 10:41:23 +01:00
2019-10-13 20:37:07 +02:00
2019-10-13 20:49:36 +02:00
2020-02-03 10:05:23 +01:00
2019-10-13 11:56:50 +02:00
2018-04-04 11:14:19 +02:00
2019-04-10 09:42:11 +02:00
2017-11-13 15:35:31 +01:00
2017-11-13 15:35:31 +01:00
2020-05-18 14:29:50 +02:00
2017-09-07 17:25:15 +02:00
2020-02-01 21:06:07 +01:00
2020-05-12 14:07:22 +02:00
2019-03-06 22:04:35 +01:00
2020-05-22 10:05:34 +02:00
2012-08-16 18:47:41 +01:00
2019-08-07 20:35:27 +02:00
2017-07-27 11:32:01 +02:00
2019-04-10 09:42:11 +02:00
2019-03-02 21:18:48 +01:00
2018-04-22 18:46:54 +02:00
2018-11-17 20:52:18 +01:00
2018-11-17 20:52:18 +01:00
2020-06-13 15:46:59 +02:00
2019-10-07 19:56:23 +02:00
2019-10-17 16:40:37 +02:00
2015-03-04 07:54:35 +00:00
2020-06-12 23:23:55 +02:00
2019-10-27 21:07:21 +01:00
2017-09-07 17:25:15 +02:00
2017-09-07 17:25:15 +02:00
2017-12-09 20:17:47 +01:00
2017-12-09 20:17:47 +01:00
2020-07-11 23:16:07 +02:00
2020-06-01 19:06:51 +02:00
2018-06-25 19:04:29 +01:00
2018-06-25 20:18:41 +01:00
2018-06-25 19:04:29 +01:00
2019-10-27 21:07:21 +01:00
2020-01-25 09:01:04 +01:00
2019-07-06 16:55:10 +02:00
2018-08-19 10:34:44 +02:00
2018-08-19 10:34:44 +02:00
2020-06-12 23:23:55 +02:00
2020-06-12 23:23:55 +02:00
2019-06-06 19:33:37 +02:00
2019-11-04 00:05:35 +01:00
2020-05-29 14:56:40 +02:00
2019-09-07 11:31:00 +02:00
2019-10-25 13:57:52 +02:00
2019-10-25 13:57:52 +02:00
2019-01-25 21:29:12 +01:00
2018-09-03 21:08:27 +02:00
2019-10-27 21:07:21 +01:00
2017-11-07 18:01:10 +00:00
2017-07-27 11:55:30 +02:00
2017-07-27 11:55:30 +02:00
2017-07-27 11:55:30 +02:00
2020-01-31 21:44:06 +01:00
2018-03-02 16:24:35 +01:00
2020-04-14 16:39:48 +02:00
2019-08-06 20:51:19 +02:00
2020-07-11 23:16:07 +02:00
2020-07-11 23:16:07 +02:00
2018-09-03 21:08:27 +02:00
2019-10-27 21:07:21 +01:00
2020-04-12 18:48:52 +02:00
2019-11-05 23:28:47 +01:00
2019-10-19 21:14:06 +02:00
2019-10-19 21:14:06 +02:00
2017-07-20 23:20:42 +01:00
2019-01-11 11:55:51 +01:00
2017-12-08 15:59:00 +00:00
2018-05-09 21:47:42 +02:00
2019-10-27 22:07:10 +01:00
2020-05-15 11:30:12 +02:00
2017-09-07 11:24:33 +01:00
2018-02-09 18:49:36 +01:00
2020-06-12 23:23:55 +02:00
2018-02-02 15:36:15 +01:00
2017-11-21 11:10:07 +01:00
2020-07-05 11:51:30 +02:00
2017-07-20 00:27:28 +02:00
2019-09-09 14:28:11 +02:00
2019-09-09 14:28:11 +02:00
2017-10-11 14:58:20 +01:00
2020-01-24 14:26:22 +01:00
2019-10-29 13:59:18 +01:00