diff options
| author | Martin Hořeňovský | 2017-03-03 14:34:50 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2017-03-03 14:34:50 +0100 |
| commit | be4f6ab8e19ff16d17c8a6d9287999c6b965d04e (patch) | |
| tree | b74123b3decfb3e945a2636759af0e9871ab1bc5 /projects/SelfTest/ToStringGeneralTests.cpp | |
| parent | fd6c7aee6dff76de8c14fcd81b10128adaf57b14 (diff) | |
| download | catch3-be4f6ab8e19ff16d17c8a6d9287999c6b965d04e.tar.gz | |
Change reporting of CAPTURE'd variables
Info is not changed, intentionally.
Closes #639
Diffstat (limited to 'projects/SelfTest/ToStringGeneralTests.cpp')
| -rw-r--r-- | projects/SelfTest/ToStringGeneralTests.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/projects/SelfTest/ToStringGeneralTests.cpp b/projects/SelfTest/ToStringGeneralTests.cpp index a9fa4b83..bca913fb 100644 --- a/projects/SelfTest/ToStringGeneralTests.cpp +++ b/projects/SelfTest/ToStringGeneralTests.cpp @@ -38,3 +38,17 @@ TEST_CASE( "Character pretty printing" ){ } } } + + +TEST_CASE( "Capture and info messages" ) { + SECTION("Capture should stringify like assertions") { + int i = 2; + CAPTURE(i); + REQUIRE(true); + } + SECTION("Info should NOT stringify the way assertions do") { + int i = 3; + INFO(i); + REQUIRE(true); + } +} |