From: Steve Brokenshire Date: Sat, 23 Jan 2016 12:25:20 +0000 (+0000) Subject: Added test to check result on a single match for COMMENT. X-Git-Tag: release-0.02~752 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=e5d52c7882ad6441ec5ebc596631dc5b75cc84c8;p=xestiacalendar%2F.git Added test to check result on a single match for COMMENT. --- diff --git a/source/tests/xestiacalendar_commonfunctions.h b/source/tests/xestiacalendar_commonfunctions.h index 22ea5d4..9c2ce93 100644 --- a/source/tests/xestiacalendar_commonfunctions.h +++ b/source/tests/xestiacalendar_commonfunctions.h @@ -100,6 +100,11 @@ TEST(CommonFunctions, ProcessTextVectorsTests){ ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, true, "COMMENT")); + TextExample1TestResult.clear(); + TextExample1TestResult.insert(make_pair("COMMENT", "This is the first comment.")); + + ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, false, "COMMENT")); + TextExample1TestResult.clear(); TextExample1TestResult.insert(make_pair("CONTACT;TEST=VALUE", "First Contact")); TextExample1TestResult.insert(make_pair("CONTACT;LAZY=NOPE", "Second Contact"));