Change reporting of CAPTURE'd variables
Info is not changed, intentionally. Closes #639
This commit is contained in:
parent
fd6c7aee6d
commit
be4f6ab8e1
6 changed files with 81 additions and 14 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue