From: Steve Brokenshire Date: Sat, 23 Jan 2016 12:30:48 +0000 (+0000) Subject: Added test to check result on a single match for RESOURCES. X-Git-Tag: release-0.02~750 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=48a3ac038467b55ed355d93b51e1c52923969864;p=xestiacalendar%2F.git Added test to check result on a single match for RESOURCES. --- diff --git a/source/tests/xestiacalendar_commonfunctions.h b/source/tests/xestiacalendar_commonfunctions.h index f17b2a7..b696608 100644 --- a/source/tests/xestiacalendar_commonfunctions.h +++ b/source/tests/xestiacalendar_commonfunctions.h @@ -124,6 +124,11 @@ TEST(CommonFunctions, ProcessTextVectorsTests){ ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, true, "RESOURCES")); + TextExample1TestResult.clear(); + TextExample1TestResult.insert(make_pair("RESOURCES;ROOM=YES", "First Resource Widget")); + + ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, false, "RESOURCES")); + TextExample1TestResult.clear(); TextExample1TestResult.insert(make_pair("RELATED;RELATION=NO", "First Relation")); TextExample1TestResult.insert(make_pair("RELATED;RELATION=YES", "Second Relation"));