Added test for invisibles

This commit is contained in:
Phil Nash 2014-04-23 07:07:27 +01:00
parent 328a469c03
commit 31caba4f73
5 changed files with 80 additions and 5 deletions

View file

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