Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/projects/SelfTest/ToStringGeneralTests.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2017-03-03 14:34:50 +0100
committerMartin Hořeňovský2017-03-03 14:34:50 +0100
commitbe4f6ab8e19ff16d17c8a6d9287999c6b965d04e (patch)
treeb74123b3decfb3e945a2636759af0e9871ab1bc5 /projects/SelfTest/ToStringGeneralTests.cpp
parentfd6c7aee6dff76de8c14fcd81b10128adaf57b14 (diff)
downloadcatch3-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.cpp14
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);
+ }
+}