From f84b1d70f0ac475c8582c5b1707e54eb9ce5bda9 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 31 Jan 2016 11:45:32 +0000 Subject: [PATCH] Added unit tests for GEO and LAST-MODIFIED in iCalendarTask/ObjectDataTests. --- source/tests/xestiacalendar_icaltaskload.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source/tests/xestiacalendar_icaltaskload.h b/source/tests/xestiacalendar_icaltaskload.h index a908a4b..9e19253 100644 --- a/source/tests/xestiacalendar_icaltaskload.h +++ b/source/tests/xestiacalendar_icaltaskload.h @@ -94,4 +94,14 @@ TEST(iCalendarTask, ObjectDataTests){ ASSERT_EQ("Europe/Truro", TestTask.DateTimeStartDataTimeZoneID); ASSERT_EQ("PARAMONE=YES;PARAMTWO=NO", TestTask.DateTimeStartDataTokens); + // Tests for GEO. + + ASSERT_EQ("20.0;20.0", TestTask.GeographicData); + ASSERT_EQ("EXAMPLE=MOOP", TestTask.GeographicTokens); + + // Tests for LAST-MODIFIED. + + ASSERT_EQ("20160131T114200Z", TestTask.LastModifiedData); + ASSERT_EQ("FUTURE=EVEN", TestTask.LastModifiedTokens); + } \ No newline at end of file -- 2.39.5