mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-30 00:17:52 +00:00
Added test for invisibles
This commit is contained in:
parent
328a469c03
commit
31caba4f73
5 changed files with 80 additions and 5 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue