From 3e63b1063bb4e62544be5a8e8c5c5fc3f400cf98 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 31 Jan 2016 14:39:20 +0000 Subject: [PATCH] Added unit tests for DTSTART and LAST-MODIFIED in iCalendarJournal/ObjectDataTests. --- source/tests/xestiacalendar_icaljournalload.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/tests/xestiacalendar_icaljournalload.h b/source/tests/xestiacalendar_icaljournalload.h index a20ca43..04a3a79 100644 --- a/source/tests/xestiacalendar_icaljournalload.h +++ b/source/tests/xestiacalendar_icaljournalload.h @@ -49,4 +49,16 @@ TEST(iCalendarJournal, ObjectDataTests){ ASSERT_EQ("PUBLIC", TestJournal.ClassData); ASSERT_EQ("CHOCOLATE=BAR", TestJournal.ClassDataTokens); + // Tests for DTSTART. + + ASSERT_EQ("20160131T143500Z", TestJournal.DateTimeStartData); + ASSERT_EQ("DATE-TIME", TestJournal.DateTimeStartDataValue); + ASSERT_EQ("Europe/Truro", TestJournal.DateTimeStartDataTimeZoneID); + ASSERT_EQ("PARAMONE=YES;PARAMTWO=NO", TestJournal.DateTimeStartDataTokens); + + // Tests for LAST-MODIFIED. + + ASSERT_EQ("20160131T143700Z", TestJournal.LastModifiedData); + ASSERT_EQ("FUTURE=YES", TestJournal.LastModifiedTokens); + } \ No newline at end of file -- 2.39.5