Add test for IdentifierUtils::RemoveIdentifierFreeText

This commit is contained in:
Pi-Hsun Shih 2013-03-15 10:52:13 +08:00
parent 6a0525254e
commit 2d11be9162

View File

@ -89,6 +89,14 @@ TEST( IdentifierUtilsTest, RemoveIdentifierFreeTextWorks ) {
"foo \n" "foo \n"
"bar \n" "bar \n"
"qux" ); "qux" );
EXPECT_STREQ( RemoveIdentifierFreeText(
"foo \n"
"bar \"foo\\\\\\\"ooo\"\n"
"qux \"baz\\\\\\\\\""
).c_str(),
"foo \n"
"bar \n"
"qux " );
} }