From 500c60854b21599d281f1b0146cb5eee8332ffee Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sun, 31 Jan 2016 15:00:20 +0000 Subject: [PATCH] Added unit tests for SUMMARY and URL in iCalendarJournal/ObjectDataTests. --- source/tests/xestiacalendar_icaljournalload.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- 2.39.5