diff options
| author | Matthew Parnell | 2018-08-14 10:49:55 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2018-09-02 16:53:57 +0200 |
| commit | 64fd5b8058c92007933e9cc5051b0c51f31129ad (patch) | |
| tree | bd9d6a228a8b3629dbc0df08898668aed5684e33 /projects/SelfTest/UsageTests/ToStringVector.tests.cpp | |
| parent | ee73989f9bc3a42c6224218a222d90c44daf120c (diff) | |
| download | catch3-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