From: Steve Brokenshire Date: Sat, 23 Jan 2016 11:17:44 +0000 (+0000) Subject: Added third set of tests for ProcessTextVectorsTests X-Git-Tag: release-0.02~760 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=a67a186a2e6bef3213619106df28c71b13ac9711;p=xestiacalendar%2F.git Added third set of tests for ProcessTextVectorsTests --- diff --git a/source/tests/xestiacalendar_commonfunctions.h b/source/tests/xestiacalendar_commonfunctions.h index c598eb4..7315d54 100644 --- a/source/tests/xestiacalendar_commonfunctions.h +++ b/source/tests/xestiacalendar_commonfunctions.h @@ -34,6 +34,15 @@ TEST(CommonFunctions, ProcessTextVectorsTests){ TextPropertiesExample1.push_back("CATEGORIES"); TextValueExample1.push_back("CATEGORY 3"); + TextPropertiesExample1.push_back("COMMENT"); + TextValueExample1.push_back("This is the first comment."); + + TextPropertiesExample1.push_back("COMMENT"); + TextValueExample1.push_back("This is the second comment."); + + TextPropertiesExample1.push_back("COMMENT"); + TextValueExample1.push_back("This is the third comment."); + TextExample1TestResult.insert(make_pair("ATTENDEE", "Example Attendee 1")); TextExample1TestResult.insert(make_pair("ATTENDEE", "Example Attendee 2")); TextExample1TestResult.insert(make_pair("ATTENDEE", "Example Attendee 3")); @@ -47,4 +56,11 @@ TEST(CommonFunctions, ProcessTextVectorsTests){ ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, true, "CATEGORIES")); + TextExample1TestResult.clear(); + TextExample1TestResult.insert(make_pair("COMMENT", "This is the first comment.")); + TextExample1TestResult.insert(make_pair("COMMENT", "This is the second comment.")); + TextExample1TestResult.insert(make_pair("COMMENT", "This is the third comment.")); + + ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, true, "COMMENT")); + } \ No newline at end of file