forked from catchorg/Catch2
Change reporting of CAPTURE'd variables
Info is not changed, intentionally. Closes #639
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user