From b42f016fe9b34406ac2b8d65ef49604d841d1e00 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sat, 23 Jan 2016 12:30:37 +0000 Subject: [PATCH] Added test to check result on a single match for CONTACT. --- source/tests/xestiacalendar_commonfunctions.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/tests/xestiacalendar_commonfunctions.h b/source/tests/xestiacalendar_commonfunctions.h index 9c2ce93..f17b2a7 100644 --- a/source/tests/xestiacalendar_commonfunctions.h +++ b/source/tests/xestiacalendar_commonfunctions.h @@ -112,6 +112,11 @@ TEST(CommonFunctions, ProcessTextVectorsTests){ ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, true, "CONTACT")); + TextExample1TestResult.clear(); + TextExample1TestResult.insert(make_pair("CONTACT;TEST=VALUE", "First Contact")); + + ASSERT_EQ(TextExample1TestResult, ProcessTextVectors(&TextPropertiesExample1, &TextValueExample1, false, "CONTACT")); + TextExample1TestResult.clear(); TextExample1TestResult.insert(make_pair("RESOURCES;ROOM=YES", "First Resource Widget")); TextExample1TestResult.insert(make_pair("RESOURCES;ROOM=NO", "Second Resource Widget")); -- 2.39.5