diff --git a/test/testsimplifytokens.cpp b/test/testsimplifytokens.cpp index 35284ef51..b75c70394 100644 --- a/test/testsimplifytokens.cpp +++ b/test/testsimplifytokens.cpp @@ -856,13 +856,9 @@ private: } { + // Ticket #799 const char code[] = "; const char str[] = {'1'}; sizeof(str);"; - - const char str[] = {'1'}; - std::ostringstream expected; - expected << "; const char * str ; str = { '1' } ; " << sizeof(str) << " ;"; - - TODO_ASSERT_EQUALS(expected.str(), sizeof_(code)); + ASSERT_EQUALS("; const char str [ 1 ] = { '1' } ; 1 ;", sizeof_(code)); } // ticket #716 - sizeof string