Remove the unit test for MultiWordMap

Swift SVN r16268
This commit is contained in:
Doug Gregor
2014-04-13 00:21:32 +00:00
parent 02ba8db0cf
commit 3b1841eb6d

View File

@@ -74,25 +74,3 @@ TEST(ToSentencecaseTest, Words) {
EXPECT_EQ(camel_case::toSentencecase("", scratch), "");
}
TEST(MultiWordsTest, Match) {
camel_case::MultiWordMap multiWords;
multiWords.insert("attributed", "string");
multiWords.insert("table", "view");
multiWords.insert("table", "view", "controller");
multiWords.insert("table", "top");
auto words1 = camel_case::getWords("createTableView");
EXPECT_EQ(*multiWords.match(words1.rbegin(), words1.rend()), "Table");
auto words2 = camel_case::getWords("createTableViewController");
EXPECT_EQ(*multiWords.match(words2.rbegin(), words2.rend()), "Table");
auto words3 = camel_case::getWords("createSubview");
EXPECT_EQ(*multiWords.match(words3.rbegin(), words3.rend()), "Subview");
auto words4 = camel_case::getWords("addView");
EXPECT_EQ(*multiWords.match(words4.rbegin(), words4.rend()), "View");
auto words5 = camel_case::getWords("insertAttributedString");
EXPECT_EQ(*multiWords.match(words5.rbegin(), words5.rend()), "Attributed");
}