X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Ftests%2Fxestiacalendar_commonfunctions.h;h=a06219887776303adb9da45363b57ba537bb88e2;hb=b4f62179380b58d35dc97a072e05ea0061ac36aa;hp=7315d54e2db052aa7d4e04aaf4dd9fc6dbac1bb1;hpb=a67a186a2e6bef3213619106df28c71b13ac9711;p=xestiacalendar%2F.git diff --git a/source/tests/xestiacalendar_commonfunctions.h b/source/tests/xestiacalendar_commonfunctions.h index 7315d54..a062198 100644 --- a/source/tests/xestiacalendar_commonfunctions.h +++ b/source/tests/xestiacalendar_commonfunctions.h @@ -43,6 +43,15 @@ TEST(CommonFunctions, ProcessTextVectorsTests){ TextPropertiesExample1.push_back("COMMENT"); TextValueExample1.push_back("This is the third comment."); + TextPropertiesExample1.push_back("CONTACT;TEST=VALUE"); + TextValueExample1.push_back("First Contact"); + + TextPropertiesExample1.push_back("CONTACT;LAZY=NOPE"); + TextValueExample1.push_back("Second Contact"); + + TextPropertiesExample1.push_back("CONTACT;SETUP=NO"); + TextValueExample1.push_back("Third Contact"); + TextExample1TestResult.insert(make_pair("ATTENDEE", "Example Attendee 1")); TextExample1TestResult.insert(make_pair("ATTENDEE", "Example Attendee 2")); TextExample1TestResult.insert(make_pair("ATTENDEE", "Example Attendee 3")); @@ -63,4 +72,11 @@ TEST(CommonFunctions, ProcessTextVectorsTests){ ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, true, "COMMENT")); + TextExample1TestResult.clear(); + TextExample1TestResult.insert(make_pair("CONTACT;TEST=VALUE", "First Contact")); + TextExample1TestResult.insert(make_pair("CONTACT;LAZY=NOPE", "Second Contact")); + TextExample1TestResult.insert(make_pair("CONTACT;SETUP=NO", "Third Contact")); + + ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, true, "CONTACT")); + } \ No newline at end of file