mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
Remove mention of ANON_TEST_CASE
from documentation
It was removed from v3, because the standard `TEST_CASE` can now be anonymous as well.
This commit is contained in:
parent
eb911aa995
commit
35cba5486d
@ -119,21 +119,6 @@ is initiated. This means that it either needs to be done in a global
|
|||||||
constructor, or before Catch2's session is created in user's own main._
|
constructor, or before Catch2's session is created in user's own main._
|
||||||
|
|
||||||
|
|
||||||
* `ANON_TEST_CASE`
|
|
||||||
|
|
||||||
`ANON_TEST_CASE` is a `TEST_CASE` replacement that will autogenerate
|
|
||||||
unique name. The advantage of this is that you do not have to think
|
|
||||||
of a name for the test case,`the disadvantage is that the name doesn't
|
|
||||||
necessarily remain stable across different links, and thus it might be
|
|
||||||
hard to run directly.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
```cpp
|
|
||||||
ANON_TEST_CASE() {
|
|
||||||
SUCCEED("Hello from anonymous test case");
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
* `DYNAMIC_SECTION`
|
* `DYNAMIC_SECTION`
|
||||||
|
|
||||||
> Introduced in Catch2 2.3.0.
|
> Introduced in Catch2 2.3.0.
|
||||||
|
Loading…
Reference in New Issue
Block a user