Fix escape sequences in test cases (#3499)
This commit is contained in:
parent
52e4bec50a
commit
c4c12df372
|
@ -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());
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue