Skip to content

Commit 3b1841e

Browse files
committed
Remove the unit test for MultiWordMap
Swift SVN r16268
1 parent 02ba8db commit 3b1841e

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

unittests/Basic/StringExtrasTest.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -74,25 +74,3 @@ TEST(ToSentencecaseTest, Words) {
7474
EXPECT_EQ(camel_case::toSentencecase("", scratch), "");
7575
}
7676

77-
TEST(MultiWordsTest, Match) {
78-
camel_case::MultiWordMap multiWords;
79-
multiWords.insert("attributed", "string");
80-
multiWords.insert("table", "view");
81-
multiWords.insert("table", "view", "controller");
82-
multiWords.insert("table", "top");
83-
84-
auto words1 = camel_case::getWords("createTableView");
85-
EXPECT_EQ(*multiWords.match(words1.rbegin(), words1.rend()), "Table");
86-
87-
auto words2 = camel_case::getWords("createTableViewController");
88-
EXPECT_EQ(*multiWords.match(words2.rbegin(), words2.rend()), "Table");
89-
90-
auto words3 = camel_case::getWords("createSubview");
91-
EXPECT_EQ(*multiWords.match(words3.rbegin(), words3.rend()), "Subview");
92-
93-
auto words4 = camel_case::getWords("addView");
94-
EXPECT_EQ(*multiWords.match(words4.rbegin(), words4.rend()), "View");
95-
96-
auto words5 = camel_case::getWords("insertAttributedString");
97-
EXPECT_EQ(*multiWords.match(words5.rbegin(), words5.rend()), "Attributed");
98-
}

0 commit comments

Comments
 (0)