From 2d11be91621d5fff162fa1c0933f6483af6ce3f9 Mon Sep 17 00:00:00 2001 From: Pi-Hsun Shih Date: Fri, 15 Mar 2013 10:52:13 +0800 Subject: [PATCH] Add test for IdentifierUtils::RemoveIdentifierFreeText --- cpp/ycm/tests/IdentifierUtils_test.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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 " ); }