catch2/include
Matthew Parnell 64fd5b8058 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.
2018-09-02 16:53:57 +02:00
..
external Bring in Clara v1.1.4 2018-03-09 10:37:56 +01:00
internal Suppress Wunreachable-code in floating matchers and exception tests 2018-09-01 22:34:29 +02:00
reporters Fix Listening reporter use of ReporterPreferences 2018-07-22 22:58:18 +02:00
catch.hpp Add BDD AND_GIVEN based macros 2018-09-02 16:53:57 +02:00
catch_with_main.hpp Fixed catch_with_main.hpp (no longer references deleted catch_runner.hpp) 2015-12-28 15:06:04 +00:00