Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added unit tests for DTSTART and LAST-MODIFIED in iCalendarJournal/ObjectDataTests.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 14:39:20 +0000 (14:39 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 31 Jan 2016 14:39:20 +0000 (14:39 +0000)
source/tests/xestiacalendar_icaljournalload.h

index a20ca43..04a3a79 100644 (file)
@@ -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
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy