@@ -90,25 +90,25 @@ This macro maps onto ```TEST_CASE``` and works in the same way, except that the
90
90
* ** WHEN(** _ something_ ** )**
91
91
* ** THEN(** _ something_ ** )**
92
92
93
- These macros map onto ``` SECTION ``` s except that the section names are the _ something_ texts prefixed by
94
- "given: ", "when: " or "then: " respectively. These macros also map onto the AAA or A<sup >3</sup > test pattern
95
- (standing either for [ Assemble-Activate-Assert] ( http://wiki.c2.com/?AssembleActivateAssert ) or
96
- [ Arrange-Act-Assert] ( http://wiki.c2.com/?ArrangeActAssert ) ), and in this context, the macros provide both code
93
+ These macros map onto ``` SECTION ``` s except that the section names are the _ something_ texts prefixed by
94
+ "given: ", "when: " or "then: " respectively. These macros also map onto the AAA or A<sup >3</sup > test pattern
95
+ (standing either for [ Assemble-Activate-Assert] ( http://wiki.c2.com/?AssembleActivateAssert ) or
96
+ [ Arrange-Act-Assert] ( http://wiki.c2.com/?ArrangeActAssert ) ), and in this context, the macros provide both code
97
97
documentation and reporting of these parts of a test case without the need for extra comments or code to do so.
98
98
99
- Semantically, a ` GIVEN ` clause may have multiple _ independent_ ` WHEN ` clauses within it. This allows a test
100
- to have, e.g., one set of "given" objects and multiple subtests using those objects in various ways in each
101
- of the ` WHEN ` clauses without repeating the initialisation from the ` GIVEN ` clause. When there are _ dependent_
102
- clauses -- such as a second ` WHEN ` clause that should only happen _ after_ the previous ` WHEN ` clause has been
99
+ Semantically, a ` GIVEN ` clause may have multiple _ independent_ ` WHEN ` clauses within it. This allows a test
100
+ to have, e.g., one set of "given" objects and multiple subtests using those objects in various ways in each
101
+ of the ` WHEN ` clauses without repeating the initialisation from the ` GIVEN ` clause. When there are _ dependent_
102
+ clauses -- such as a second ` WHEN ` clause that should only happen _ after_ the previous ` WHEN ` clause has been
103
103
executed and validated -- there are additional macros starting with ` AND_ ` :
104
104
105
105
* ** AND_GIVEN(** _ something_ ** )**
106
106
* ** AND_WHEN(** _ something_ ** )**
107
107
* ** AND_THEN(** _ something_ ** )**
108
108
109
- These are used to chain ``` GIVEN ``` s, ``` WHEN ``` s and ``` THEN ``` s together. The ` AND_* ` clause is placed
110
- _ inside_ the clause on which it depends. There can be multiple _ independent_ clauses that are all _ dependent_
111
- on a single outer clause.
109
+ These are used to chain ``` GIVEN ``` s, ``` WHEN ``` s and ``` THEN ``` s together. The ` AND_* ` clause is placed
110
+ _ inside_ the clause on which it depends. There can be multiple _ independent_ clauses that are all _ dependent_
111
+ on a single outer clause.
112
112
``` cpp
113
113
SCENARIO ( "vector can be sized and resized" ) {
114
114
GIVEN( "An empty vector" ) {
@@ -301,7 +301,7 @@ Currently Catch2 support up to 11 template parameters in signature
301
301
302
302
* **TEMPLATE_TEST_CASE_SIG(** _test name_ , _tags_, _signature_, _type1_, _type2_, ..., _typen_ **)**
303
303
304
- Inside `TEMPLATE_TEST_CASE_SIG` test case you can use the names of template parameters as defined in _signature_.
304
+ Inside `TEMPLATE_TEST_CASE_SIG` test case you can use the names of template parameters as defined in _signature_.
305
305
306
306
```cpp
307
307
TEMPLATE_TEST_CASE_SIG("TemplateTestSig: arrays can be created from NTTP arguments", "[vector][template][nttp]",
0 commit comments