Tokenizer: added assertions to check that no debug messages are given.

This commit is contained in:
Daniel Marjamäki 2010-11-13 17:40:57 +01:00
parent 667cc8f6e5
commit 723570fe6c
1 changed files with 2 additions and 0 deletions

View File

@ -1902,6 +1902,7 @@ private:
"for ( int i = 0 ; i < 10 ; ++ i ) { }\n"
"}";
ASSERT_EQUALS(expected, tokenizeAndStringify(code, true));
ASSERT_EQUALS("", errout.str()); // debug warnings
}
void simplifyKnownVariablesBailOutFor2()
@ -1915,6 +1916,7 @@ private:
"while ( i < 10 ) { ++ i ; }\n"
"}";
ASSERT_EQUALS(expected, tokenizeAndStringify(code, true));
ASSERT_EQUALS("", errout.str()); // debug warnings
}
void simplifyKnownVariablesBailOutFor3()