properly test the patch in IdentifierUtils::RemoveIdentifierFreeText
This commit is contained in:
parent
2d11be9162
commit
83f8d65775
@ -89,10 +89,20 @@ TEST( IdentifierUtilsTest, RemoveIdentifierFreeTextWorks ) {
|
|||||||
"foo \n"
|
"foo \n"
|
||||||
"bar \n"
|
"bar \n"
|
||||||
"qux" );
|
"qux" );
|
||||||
|
|
||||||
EXPECT_STREQ( RemoveIdentifierFreeText(
|
EXPECT_STREQ( RemoveIdentifierFreeText(
|
||||||
"foo \n"
|
"foo \n"
|
||||||
"bar \"foo\\\\\\\"ooo\"\n"
|
"bar \"fo\\\\\"baz\n"
|
||||||
"qux \"baz\\\\\\\\\""
|
"qux \"qwe\""
|
||||||
|
).c_str(),
|
||||||
|
"foo \n"
|
||||||
|
"bar baz\n"
|
||||||
|
"qux " );
|
||||||
|
|
||||||
|
EXPECT_STREQ( RemoveIdentifierFreeText(
|
||||||
|
"foo '\\\\'\n"
|
||||||
|
"bar '\\\\'\n"
|
||||||
|
"qux '\\\\'"
|
||||||
).c_str(),
|
).c_str(),
|
||||||
"foo \n"
|
"foo \n"
|
||||||
"bar \n"
|
"bar \n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user