From 396879893eda9ea7fa1033eea509500e0e2305f8 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 24 Jan 2016 14:32:42 +0000 Subject: [PATCH] Added unit tests for RECURRENCE-ID in iCalendarEvent/ObjectDataTests. --- source/tests/xestiacalendar_icaleventload.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/tests/xestiacalendar_icaleventload.h b/source/tests/xestiacalendar_icaleventload.h index 539023d..baff32a 100644 --- a/source/tests/xestiacalendar_icaleventload.h +++ b/source/tests/xestiacalendar_icaleventload.h @@ -165,5 +165,13 @@ TEST(iCalendarEvent, ObjectDataTests){ ASSERT_EQ("http://www.example.com/", TestEvent.URLData); ASSERT_EQ("EXTERNAL=YES", TestEvent.URLDataTokens); + + // Tests for RECURRENCE-ID. + + ASSERT_EQ("20160124", TestEvent.RecurranceIDData); + ASSERT_EQ("Europe/Truro", TestEvent.RecurranceIDDataTimeZoneParam); + ASSERT_EQ("THISANDFUTURE", TestEvent.RecurranceIDDataRangeParam); + ASSERT_EQ("DATE", TestEvent.RecurranceIDDataValue); + ASSERT_EQ("EXAMPLE=DATA", TestEvent.RecurranceIDDataTokens); } \ No newline at end of file -- 2.39.5