diff --git a/cpp/ycm/tests/IdentifierUtils_test.cpp b/cpp/ycm/tests/IdentifierUtils_test.cpp index 48092c1e..fa986ff3 100644 --- a/cpp/ycm/tests/IdentifierUtils_test.cpp +++ b/cpp/ycm/tests/IdentifierUtils_test.cpp @@ -89,6 +89,14 @@ TEST( IdentifierUtilsTest, RemoveIdentifierFreeTextWorks ) { "foo \n" "bar \n" "qux" ); + EXPECT_STREQ( RemoveIdentifierFreeText( + "foo \n" + "bar \"foo\\\\\\\"ooo\"\n" + "qux \"baz\\\\\\\\\"" + ).c_str(), + "foo \n" + "bar \n" + "qux " ); }