Skip to content

Commit 4b5812e

Browse files
committed
Remove trailing whitespace from test-cases-and-sections.md
1 parent 9f44bd5 commit 4b5812e

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

docs/test-cases-and-sections.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -90,25 +90,25 @@ This macro maps onto ```TEST_CASE``` and works in the same way, except that the
9090
* **WHEN(** _something_ **)**
9191
* **THEN(** _something_ **)**
9292

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
9797
documentation and reporting of these parts of a test case without the need for extra comments or code to do so.
9898

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
103103
executed and validated -- there are additional macros starting with `AND_`:
104104

105105
* **AND_GIVEN(** _something_ **)**
106106
* **AND_WHEN(** _something_ **)**
107107
* **AND_THEN(** _something_ **)**
108108

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.
112112
```cpp
113113
SCENARIO( "vector can be sized and resized" ) {
114114
GIVEN( "An empty vector" ) {
@@ -301,7 +301,7 @@ Currently Catch2 support up to 11 template parameters in signature
301301
302302
* **TEMPLATE_TEST_CASE_SIG(** _test name_ , _tags_, _signature_, _type1_, _type2_, ..., _typen_ **)**
303303
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_.
305305
306306
```cpp
307307
TEMPLATE_TEST_CASE_SIG("TemplateTestSig: arrays can be created from NTTP arguments", "[vector][template][nttp]",

0 commit comments

Comments
 (0)