From: Steve Brokenshire Date: Sun, 31 Jan 2016 14:39:20 +0000 (+0000) Subject: Added unit tests for DTSTART and LAST-MODIFIED in iCalendarJournal/ObjectDataTests. X-Git-Tag: release-0.02~490 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=3e63b1063bb4e62544be5a8e8c5c5fc3f400cf98;p=xestiacalendar%2F.git Added unit tests for DTSTART and LAST-MODIFIED in iCalendarJournal/ObjectDataTests. --- 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