testpreprocessor: updated the testing for multiline preprocessor statements

This commit is contained in:
Daniel Marjamäki 2008-11-03 19:39:09 +00:00
parent ab590ce675
commit c90084ee00
1 changed files with 3 additions and 2 deletions

View File

@ -399,10 +399,11 @@ private:
void multiline()
{
const char filedata[] = "#define str \"abc\" \\ \n"
" \"def\"\n";
" \"def\" \\ \n"
" \"ghi\" \n";
std::map<std::string, std::string> expected;
expected[""] = "#define str \"abc\" \"def\"\n\n";
expected[""] = "#define str \"abc\" \"def\" \"ghi\"\n\n\n";
// Preprocess => actual result..
std::istringstream istr(filedata);