diff options
| author | Martin Hořeňovský | 2023-07-12 11:49:43 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2023-07-12 11:49:43 +0200 |
| commit | 683c85772f65a8779e3baf45d3402098db58bb8d (patch) | |
| tree | 4ede5a9cc2bcadc6084da16aff562d31991a764b /tests | |
| parent | 1b049bdba40582d7c9c8f6e650496f701841b26d (diff) | |
| download | catch3-683c85772f65a8779e3baf45d3402098db58bb8d.tar.gz | |
Clean up explanation in tests
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ExtraTests/X20-AssertionStartingEventGoesBeforeAssertionIsEvaluated.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/ExtraTests/X20-AssertionStartingEventGoesBeforeAssertionIsEvaluated.cpp b/tests/ExtraTests/X20-AssertionStartingEventGoesBeforeAssertionIsEvaluated.cpp index ef5b46b9..6f44bf69 100644 --- a/tests/ExtraTests/X20-AssertionStartingEventGoesBeforeAssertionIsEvaluated.cpp +++ b/tests/ExtraTests/X20-AssertionStartingEventGoesBeforeAssertionIsEvaluated.cpp @@ -7,11 +7,10 @@ // SPDX-License-Identifier: BSL-1.0 /**\file - * TODO: FIXES Registers custom reporter that reports testCase* events + * Registers an event listener to increments counter of assertionStarting events. * - * The resulting executable can then be used by an external Python script - * to verify that testCase{Starting,Ended} and testCasePartial{Starting,Ended} - * events are properly nested. + * Different assertion macros then check that the counter is at expected + * value when they are evaluated. */ #include <catch2/catch_test_macros.hpp> @@ -23,9 +22,6 @@ namespace { static size_t assertion_starting_events_seen = 0; - // TODO: custom matcher to check that "assertion_starting_events_seen" has - // the right number of checks - class AssertionStartingListener : public Catch::EventListenerBase { public: AssertionStartingListener( Catch::IConfig const* config ): |