mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove the unit test for MultiWordMap
Swift SVN r16268
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user