From: Steve Brokenshire Date: Sat, 23 Jan 2016 12:23:22 +0000 (+0000) Subject: Added test to check result on a single match for CATEGORIES. X-Git-Tag: release-0.02~753 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=c79fde81cd023afb49757695c34b56ff594b5e2d;p=xestiacalendar%2F.git Added test to check result on a single match for CATEGORIES. --- diff --git a/source/tests/xestiacalendar_commonfunctions.h b/source/tests/xestiacalendar_commonfunctions.h index dc81f98..22ea5d4 100644 --- a/source/tests/xestiacalendar_commonfunctions.h +++ b/source/tests/xestiacalendar_commonfunctions.h @@ -88,6 +88,11 @@ TEST(CommonFunctions, ProcessTextVectorsTests){ ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, true, "CATEGORIES")); + TextExample1TestResult.clear(); + TextExample1TestResult.insert(make_pair("CATEGORIES", "CATEGORY 1")); + + ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, false, "CATEGORIES")); + TextExample1TestResult.clear(); TextExample1TestResult.insert(make_pair("COMMENT", "This is the first comment.")); TextExample1TestResult.insert(make_pair("COMMENT", "This is the second comment."));