Robert Reif: code cleanup

This commit is contained in:
Daniel Marjamäki 2009-12-23 12:17:48 +01:00
parent 4419f4a342
commit fe74c65c89
1 changed files with 5 additions and 5 deletions

View File

@ -2773,11 +2773,11 @@ private:
void simplifyString()
{
Tokenizer *tokenizer = 0;
ASSERT_EQUALS("\"abc\"", tokenizer->simplifyString("\"abc\""));
ASSERT_EQUALS("\"a\"", tokenizer->simplifyString("\"\\x3\""));
ASSERT_EQUALS("\"a\"", tokenizer->simplifyString("\"\\x33\""));
ASSERT_EQUALS("\"a3\"", tokenizer->simplifyString("\"\\x333\""));
Tokenizer tokenizer;
ASSERT_EQUALS("\"abc\"", tokenizer.simplifyString("\"abc\""));
ASSERT_EQUALS("\"a\"", tokenizer.simplifyString("\"\\x3\""));
ASSERT_EQUALS("\"a\"", tokenizer.simplifyString("\"\\x33\""));
ASSERT_EQUALS("\"a3\"", tokenizer.simplifyString("\"\\x333\""));
}
void simplifyConst()