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

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2025-10-16 20:45:22 +0200
committerMartin Hořeňovský2025-10-16 20:45:28 +0200
commit31ee3beb0a474463e0101674c22f2fef0311d601 (patch)
tree5fd4b80bca7fdab923d5b79aee6f7babbd3e185d
parent3b853aa9fbe16569a30b176e1a76fa4d72c63551 (diff)
downloadcatch3-31ee3beb0a474463e0101674c22f2fef0311d601.tar.gz
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
-rw-r--r--docs/event-listeners.md2
-rw-r--r--docs/generators.md2
-rw-r--r--docs/skipping-passing-failing.md2
3 files changed, 3 insertions, 3 deletions
diff --git a/docs/event-listeners.md b/docs/event-listeners.md
index 71db3e18..377f447a 100644
--- a/docs/event-listeners.md
+++ b/docs/event-listeners.md
@@ -10,7 +10,7 @@ in-memory logs if they are not needed (the test case passed).
Unlike reporters, each registered event listener is always active. Event
listeners are always notified before reporter(s).
-To write your own event listener, you should derive from `Catch::TestEventListenerBase`,
+To write your own event listener, you should derive from `Catch::EventListenerBase`,
as it provides empty stubs for all reporter events, allowing you to
only override events you care for. Afterwards you have to register it
with Catch2 using `CATCH_REGISTER_LISTENER` macro, so that Catch2 knows
diff --git a/docs/generators.md b/docs/generators.md
index 000b2009..27bedacc 100644
--- a/docs/generators.md
+++ b/docs/generators.md
@@ -275,7 +275,7 @@ There are two ways to handle this, depending on whether you want this
to be an error or not.
* If empty generator **is** an error, throw an exception in constructor.
- * If empty generator **is not** an error, use the [`SKIP`](skipping-passing-failing.md#skipping-test-cases-at-runtime) in constructor.
+ * If empty generator **is not** an error, use the [`SKIP` macro](skipping-passing-failing.md#skipping-test-cases-at-runtime) in constructor.
diff --git a/docs/skipping-passing-failing.md b/docs/skipping-passing-failing.md
index 1bdc1f03..2b363a33 100644
--- a/docs/skipping-passing-failing.md
+++ b/docs/skipping-passing-failing.md
@@ -87,7 +87,7 @@ TEST_CASE("complex test case") {
```
This test case will report 5 passing assertions; one for each of the three
-values in section `a1`, and then two in section `a2`, from values 2 and 4.
+values in section `a1`, and then two in section `a2`, from values 2 and 6.
Note that as soon as one section is skipped, the entire test case will
be reported as _skipped_ (unless there is a failing assertion, in which