TestBoost: Warn if test case is not simplified properly
This commit is contained in:
parent
8c6637c79c
commit
dd6a806ada
|
@ -47,7 +47,11 @@ private:
|
|||
Tokenizer tokenizer(&settings, this);
|
||||
std::istringstream istr(code);
|
||||
tokenizer.tokenize(istr, "test.cpp");
|
||||
const std::string str1(tokenizer.tokens()->stringifyList(0,true));
|
||||
tokenizer.simplifyTokenList();
|
||||
const std::string str2(tokenizer.tokens()->stringifyList(0,true));
|
||||
if (str1 != str2)
|
||||
warn("Unsimplified code in test case");
|
||||
|
||||
// Check..
|
||||
CheckBoost checkBoost;
|
||||
|
|
Loading…
Reference in New Issue