Added test for assertion with comma

This commit is contained in:
Phil Nash 2017-04-26 16:12:48 +01:00
parent d17d94e45d
commit 51c143b2c6
5 changed files with 36 additions and 7 deletions

View file

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