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

summaryrefslogtreecommitdiffhomepage
path: root/projects/SelfTest/TrickyTests.cpp
diff options
context:
space:
mode:
authorPhil Nash2017-04-26 16:12:48 +0100
committerPhil Nash2017-04-26 16:12:48 +0100
commit51c143b2c61ba4d7124e0e58a07d8b7db5965e4c (patch)
tree71b0b12236d53c42b816404ba44037256eb30f55 /projects/SelfTest/TrickyTests.cpp
parentd17d94e45d3223985158ac7cda8b9fead191da4f (diff)
downloadcatch3-51c143b2c61ba4d7124e0e58a07d8b7db5965e4c.tar.gz
Added test for assertion with comma
Diffstat (limited to 'projects/SelfTest/TrickyTests.cpp')
-rw-r--r--projects/SelfTest/TrickyTests.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/projects/SelfTest/TrickyTests.cpp b/projects/SelfTest/TrickyTests.cpp
index 05053fe3..129fc2a2 100644
--- a/projects/SelfTest/TrickyTests.cpp
+++ b/projects/SelfTest/TrickyTests.cpp
@@ -398,3 +398,8 @@ TEST_CASE( "has printf", "" ) {
// This can cause problems as, currently, stdout itself is not redirect - only the cout (and cerr) buffer
printf( "spanner" );
}
+
+TEST_CASE( "assertions with commas are allowed" ) {
+
+ REQUIRE( std::vector<int>{1, 2} == std::vector<int>{1, 2} );
+}