From: Steve Brokenshire Date: Sat, 23 Jan 2016 12:14:26 +0000 (+0000) Subject: Added third set of tests for property names with a semi-colon in. X-Git-Tag: release-0.02~756 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=40d1051c6c1bbf2397767194d6b516e286c7628d;p=xestiacalendar%2F.git Added third set of tests for property names with a semi-colon in. --- diff --git a/source/tests/xestiacalendar_commonfunctions.h b/source/tests/xestiacalendar_commonfunctions.h index e6499fc..e2da316 100644 --- a/source/tests/xestiacalendar_commonfunctions.h +++ b/source/tests/xestiacalendar_commonfunctions.h @@ -61,6 +61,15 @@ TEST(CommonFunctions, ProcessTextVectorsTests){ TextPropertiesExample1.push_back("RESOURCES;ROOM=UNKNOWN"); TextValueExample1.push_back("Third Resource Widget"); + TextPropertiesExample1.push_back("RELATED;RELATION=NO"); + TextValueExample1.push_back("First Relation"); + + TextPropertiesExample1.push_back("RELATED;RELATION=YES"); + TextValueExample1.push_back("Second Relation"); + + TextPropertiesExample1.push_back("RELATED;RELATION=MAYBE"); + TextValueExample1.push_back("Third Relation"); + TextExample1TestResult.insert(make_pair("ATTENDEE", "Example Attendee 1")); TextExample1TestResult.insert(make_pair("ATTENDEE", "Example Attendee 2")); TextExample1TestResult.insert(make_pair("ATTENDEE", "Example Attendee 3")); @@ -95,4 +104,11 @@ TEST(CommonFunctions, ProcessTextVectorsTests){ ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, true, "RESOURCES")); + TextExample1TestResult.clear(); + TextExample1TestResult.insert(make_pair("RELATED;RELATION=NO", "First Relation")); + TextExample1TestResult.insert(make_pair("RELATED;RELATION=YES", "Second Relation")); + TextExample1TestResult.insert(make_pair("RELATED;RELATION=MAYBE", "Third Relation")); + + ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, true, "RELATED")); + } \ No newline at end of file