From: Steve Brokenshire Date: Sun, 31 Jan 2016 15:00:20 +0000 (+0000) Subject: Added unit tests for SUMMARY and URL in iCalendarJournal/ObjectDataTests. X-Git-Tag: release-0.02~472 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=500c60854b21599d281f1b0146cb5eee8332ffee;p=xestiacalendar%2F.git Added unit tests for SUMMARY and URL in iCalendarJournal/ObjectDataTests. --- diff --git a/source/tests/xestiacalendar_icaljournalload.h b/source/tests/xestiacalendar_icaljournalload.h index 493e1b7..a18be03 100644 --- a/source/tests/xestiacalendar_icaljournalload.h +++ b/source/tests/xestiacalendar_icaljournalload.h @@ -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