From b9161b809dfaad8fe73096b12c6082efdfa99f81 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Wed, 1 Jun 2016 00:06:32 +0100 Subject: [PATCH] Added more to unit test checking for CLASS for CalendarEventObject --- source/tests/xestiacalendar_icaleventsave.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/source/tests/xestiacalendar_icaleventsave.h b/source/tests/xestiacalendar_icaleventsave.h index 1ed9ae6..2e2ffbf 100644 --- a/source/tests/xestiacalendar_icaleventsave.h +++ b/source/tests/xestiacalendar_icaleventsave.h @@ -65,6 +65,7 @@ TEST(iCalendarSaveEvent, SaveEventTests){ ASSERT_EQ(CALENDAROBJECTLOAD_OK, TestEvent2.LoadFile("iCalendarEvent-Load2.vcf")); ASSERT_EQ(CALENDAROBJECTVALID_OK, TestEvent2.ValidBaseObject()); + SaveData.clear(); SaveDataComparison = "BEGIN:VCARD\n" "VERSION:2.0\n" "PRODID:-//Xestia//Calendar Unit Testing//KW\n" @@ -73,10 +74,11 @@ TEST(iCalendarSaveEvent, SaveEventTests){ "DTSTAMP;OTHER=PARAM:20160122T124100Z\n" "DTSTART;VALUE=DATE-TIME;TZID=Europe/Truro;PARAMONE=YES;PARAMTWO=NO:20160122T1\n" " 83000Z\n" - "DTEND;VALUE=DATE-TIME;TZID=Europe/Truro;PARAMTHREE=NO;PARAMFOUR=YES:20160124\n" - " T183000Z\n" - "SUMMARY;ALTREP="null:nodata";LANGUAGE=kw;FAVOURITE=TOFU;NOTLIKE=NONE:A summa\n" - " ry of the event.\n" + "DTEND;VALUE=DATE-TIME;TZID=Europe/Truro;PARAMFOUR=YES;PARAMTHREE=NO:20160124T\n" + " 183000Z\n" + "SUMMARY;ALTREP=\"null:nodata\";LANGUAGE=kw;FAVOURITE=TOFU;NOTLIKE=NONE:A summar\n" + " y of the event.\n" + "CLASS;CHOCOLATE=BAR:PUBLIC\n" "END:VEVENT\n" "END:VCARD"; -- 2.39.5