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

index 9c06acc..c9284a2 100644 (file)
@@ -30,13 +30,18 @@ TEST(iCalendarJournal, BasicTests){
 
 TEST(iCalendarJournal, ObjectDataTests){
        
-       CalendarEventObject TestJournal;
-       ASSERT_EQ(CALENDAROBJECTLOAD_OK, TestJournal.LoadFile("iCalendarEvent-Load2.vcf"));
+       CalendarJournalObject TestJournal;
+       ASSERT_EQ(CALENDAROBJECTLOAD_OK, TestJournal.LoadFile("iCalendarJournal-Load2.vcf"));
        ASSERT_EQ(CALENDAROBJECTVALID_OK, TestJournal.ValidBaseObject());
        
        // Tests for DTSTAMP.
        
-       ASSERT_EQ("20160122T124100Z", TestJournal.DateTimeStampData);
+       ASSERT_EQ("20160131T141500Z", TestJournal.DateTimeStampData);
        ASSERT_EQ("OTHER=PARAM", TestJournal.DateTimeStampTokens);
        
+       // Tests for UID.
+       
+       ASSERT_EQ("b3a16392-ad86-4061-be53-c215af2306c1", TestJournal.UniqueID);
+       ASSERT_EQ("UNIQUEPARAM=CERTAINLY;OKAY=MAYBENOT", TestJournal.UniqueIDTokens);
+       
 }
\ 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