Change reporting of CAPTURE'd variables

Info is not changed, intentionally.

Closes #639
This commit is contained in:
Martin Hořeňovský 2017-03-03 14:34:50 +01:00
parent fd6c7aee6d
commit be4f6ab8e1
6 changed files with 81 additions and 14 deletions

View file

@ -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);
}
}