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

index 493e1b7..a18be03 100644 (file)
@@ -89,4 +89,16 @@ TEST(iCalendarJournal, ObjectDataTests){
        ASSERT_EQ("kw", TestJournal.StatusLanguage);
        ASSERT_EQ("FAVOURITE=RICHTEA;NOTLIKE=UNKNOWN", TestJournal.StatusTokens);
        
+       // Tests for SUMMARY.
+       
+       ASSERT_EQ("A summary of the journal entry.", TestJournal.SummaryData);
+       ASSERT_EQ("null:nodata", TestJournal.SummaryDataAltRep);
+       ASSERT_EQ("kw", TestJournal.SummaryDataLanguage);
+       ASSERT_EQ("FAVOURITE=TOFU;NOTLIKE=NONE", TestJournal.SummaryDataTokens);
+       
+       // Tests for URL.
+
+       ASSERT_EQ("http://www.example.com/", TestJournal.URLData);
+       ASSERT_EQ("EXTERNAL=YES", TestJournal.URLDataTokens);
+       
 }
\ 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