Fix escape sequences in test cases (#3499)

This commit is contained in:
chrchr-github 2021-10-11 19:16:51 +02:00 committed by GitHub
parent 52e4bec50a
commit c4c12df372
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -534,8 +534,8 @@ private:
" if (DirName == nullptr)\n"
" return {};\n"
" std::string Name{ DirName };\n"
" if (!Name.empty() && Name.back() != '\\')\n"
" Name += '\\';\n"
" if (!Name.empty() && Name.back() != '\\\\')\n"
" Name += '\\\\';\n"
" return Name;\n"
"}\n");
ASSERT_EQUALS("", errout.str());

View File

@ -6047,8 +6047,8 @@ private:
" && ch != '(' && ch != ')'\n"
" && ch != '[' && ch != ']'\n"
" && ch != ';' && ch != ','\n"
" && ch != '#' && ch != '\\'\n"
" && ch != '\'' && ch != '\"');\n"
" && ch != '#' && ch != '\\\\'\n"
" && ch != '\\\'' && ch != '\\\"');\n"
"}\n";
valueOfTok(code, "return");
}