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

summaryrefslogtreecommitdiffhomepage
path: root/projects/SelfTest/UsageTests/ToStringVector.tests.cpp
diff options
context:
space:
mode:
authorMatthew Parnell2018-08-14 10:49:55 +0100
committerMartin Hořeňovský2018-09-02 16:53:57 +0200
commit64fd5b8058c92007933e9cc5051b0c51f31129ad (patch)
treebd9d6a228a8b3629dbc0df08898668aed5684e33 /projects/SelfTest/UsageTests/ToStringVector.tests.cpp
parentee73989f9bc3a42c6224218a222d90c44daf120c (diff)
downloadcatch3-64fd5b8058c92007933e9cc5051b0c51f31129ad.tar.gz
Add BDD AND_GIVEN based macros
issue #1360 It is possible to have multple given contexts in a single BDD scenario; if you have to type 'and' in the GIVEN description; it's very likely you need an AND. A generic AND is not possible, thus a AND_GIVEN is added to complement the AND_WHEN and AND_THEN. Can be used without needing to increase indent: SCENARIO("...") { GIVEN("...") AND_GIVEN("...") { WHEN("...") { THEN("...") { // ... } } } } would correctly output, when requested/needed: Given: ... And given: ... When: ... Then: ... The padding had to be increased by a character in the output message, to continue to be uniform.
Diffstat (limited to 'projects/SelfTest/UsageTests/ToStringVector.tests.cpp')
0 files changed, 0 insertions, 0 deletions