Skip to content

Commit 31ee3be

Browse files
committed
Small documentation fixes
This includes 2 small typos I found when working on generator skipping, and 1 typo found by @sfraczek in #3039. Closes #3039
1 parent 3b853aa commit 31ee3be

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/event-listeners.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ in-memory logs if they are not needed (the test case passed).
1010
Unlike reporters, each registered event listener is always active. Event
1111
listeners are always notified before reporter(s).
1212

13-
To write your own event listener, you should derive from `Catch::TestEventListenerBase`,
13+
To write your own event listener, you should derive from `Catch::EventListenerBase`,
1414
as it provides empty stubs for all reporter events, allowing you to
1515
only override events you care for. Afterwards you have to register it
1616
with Catch2 using `CATCH_REGISTER_LISTENER` macro, so that Catch2 knows

docs/generators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ There are two ways to handle this, depending on whether you want this
275275
to be an error or not.
276276

277277
* If empty generator **is** an error, throw an exception in constructor.
278-
* If empty generator **is not** an error, use the [`SKIP`](skipping-passing-failing.md#skipping-test-cases-at-runtime) in constructor.
278+
* If empty generator **is not** an error, use the [`SKIP` macro](skipping-passing-failing.md#skipping-test-cases-at-runtime) in constructor.
279279

280280

281281

docs/skipping-passing-failing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ TEST_CASE("complex test case") {
8787
```
8888
8989
This test case will report 5 passing assertions; one for each of the three
90-
values in section `a1`, and then two in section `a2`, from values 2 and 4.
90+
values in section `a1`, and then two in section `a2`, from values 2 and 6.
9191
9292
Note that as soon as one section is skipped, the entire test case will
9393
be reported as _skipped_ (unless there is a failing assertion, in which

0 commit comments

Comments
 (0)