vector<string> TextPropertiesExample1;
vector<string> TextValueExample1;
- //multimap<string, string> TextExample1Results;
- multimap<string, string> TextExample1TestResult1;
+ multimap<string, string> TextExample1TestResult;
TextPropertiesExample1.push_back("ATTENDEE");
TextValueExample1.push_back("Example Attendee 1");
TextPropertiesExample1.push_back("ATTENDEE");
TextValueExample1.push_back("Example Attendee 3");
+
+ TextPropertiesExample1.push_back("CATEGORIES");
+ TextValueExample1.push_back("CATEGORY 1");
+
+ TextPropertiesExample1.push_back("CATEGORIES");
+ TextValueExample1.push_back("CATEGORY 2");
+
+ TextPropertiesExample1.push_back("CATEGORIES");
+ TextValueExample1.push_back("CATEGORY 3");
- TextExample1TestResult1.insert(make_pair("ATTENDEE", "Example Attendee 1"));
- TextExample1TestResult1.insert(make_pair("ATTENDEE", "Example Attendee 2"));
- TextExample1TestResult1.insert(make_pair("ATTENDEE", "Example Attendee 3"));
+ TextExample1TestResult.insert(make_pair("ATTENDEE", "Example Attendee 1"));
+ TextExample1TestResult.insert(make_pair("ATTENDEE", "Example Attendee 2"));
+ TextExample1TestResult.insert(make_pair("ATTENDEE", "Example Attendee 3"));
- ASSERT_EQ(TextExample1TestResult1, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, true, "ATTENDEE"));
+ ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, true, "ATTENDEE"));
+
+ TextExample1TestResult.clear();
+ TextExample1TestResult.insert(make_pair("CATEGORIES", "CATEGORY 1"));
+ TextExample1TestResult.insert(make_pair("CATEGORIES", "CATEGORY 2"));
+ TextExample1TestResult.insert(make_pair("CATEGORIES", "CATEGORY 3"));
+
+ ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, true, "CATEGORIES"));
}
\ No newline at end of file