From: Steve Brokenshire Date: Sat, 23 Jan 2016 12:22:20 +0000 (+0000) Subject: Added test to check result on a single match for ATTENDEE. X-Git-Tag: release-0.02~754 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=debddfdf8194ed71d12485911c472cc65467cfbe;p=xestiacalendar%2F.git Added test to check result on a single match for ATTENDEE. --- diff --git a/source/tests/xestiacalendar_commonfunctions.h b/source/tests/xestiacalendar_commonfunctions.h index e2da316..dc81f98 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"));