TestTokenizer: refactored line2 test case

This commit is contained in:
Daniel Marjamäki 2014-01-28 17:18:28 +01:00
parent dee18d10a8
commit 312780b6fc
1 changed files with 4 additions and 4 deletions

View File

@ -5166,14 +5166,14 @@ private:
errout.str("");
Settings settings;
const Settings settings;
// tokenize..
Tokenizer tokenizer(&settings, this);
TokenList tokenlist(&settings);
std::istringstream istr(code);
tokenizer.tokenize(istr, "a.cpp");
tokenlist.createTokens(istr, "a.cpp");
ASSERT_EQUALS(Path::toNativeSeparators("[c:\\a.h:8]"), tokenizer.list.fileLine(tokenizer.tokens()));
ASSERT_EQUALS(Path::toNativeSeparators("[c:\\a.h:8]"), tokenlist.fileLine(tokenlist.front()));
}