mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-26 06:25:40 +02:00
Added test for invisibles
This commit is contained in:
@@ -343,3 +343,12 @@ TEST_CASE("not allowed", "[!throws]")
|
||||
//TEST_CASE( "Is big endian" ) {
|
||||
// CHECK( Catch::Detail::Endianness::which() == Catch::Detail::Endianness::Little );
|
||||
//}
|
||||
|
||||
TEST_CASE( "Tabs and newlines show in output", "[.][whitespace][failing]" ) {
|
||||
|
||||
// Based on issue #242
|
||||
std::string s1 = "if ($b == 10) {\n\t\t$a\t= 20;\n}";
|
||||
std::string s2 = "if ($b == 10) {\n\t$a = 20;\n}\n";
|
||||
CHECK( s1 == s2 );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user