X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Ftests%2Fxestiacalendar_commonfunctions.h;h=22ea5d4655b6477ff5340596bfa4bcf1f41412ba;hb=c79fde81cd023afb49757695c34b56ff594b5e2d;hp=e2da316cefb721e9fa0991339005d2ded69e2ae3;hpb=40d1051c6c1bbf2397767194d6b516e286c7628d;p=xestiacalendar%2F.git diff --git a/source/tests/xestiacalendar_commonfunctions.h b/source/tests/xestiacalendar_commonfunctions.h index e2da316..22ea5d4 100644 --- a/source/tests/xestiacalendar_commonfunctions.h +++ b/source/tests/xestiacalendar_commonfunctions.h @@ -76,6 +76,11 @@ TEST(CommonFunctions, ProcessTextVectorsTests){ ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, true, "ATTENDEE")); + TextExample1TestResult.clear(); + TextExample1TestResult.insert(make_pair("ATTENDEE", "Example Attendee 1")); + + ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, false, "ATTENDEE")); + TextExample1TestResult.clear(); TextExample1TestResult.insert(make_pair("CATEGORIES", "CATEGORY 1")); TextExample1TestResult.insert(make_pair("CATEGORIES", "CATEGORY 2")); @@ -83,6 +88,11 @@ TEST(CommonFunctions, ProcessTextVectorsTests){ ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, true, "CATEGORIES")); + TextExample1TestResult.clear(); + TextExample1TestResult.insert(make_pair("CATEGORIES", "CATEGORY 1")); + + ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, false, "CATEGORIES")); + TextExample1TestResult.clear(); TextExample1TestResult.insert(make_pair("COMMENT", "This is the first comment.")); TextExample1TestResult.insert(make_pair("COMMENT", "This is the second comment."));