From 81894cbbd8496dee4ea6d62d6ffc820482b4197d Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 28 Jul 2014 12:24:21 +0200 Subject: tests/: Add basic iCal import tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tests ical-002.sh and ical-003.sh currently fail due to bugs in duration and exception parsing. Reported-by: HÃ¥kan Jerning Signed-off-by: Lukas Fleischer --- test/data/ical-001.ical | 12 ++++++++++++ test/data/ical-002.ical | 28 ++++++++++++++++++++++++++++ test/data/ical-003.ical | 25 +++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 test/data/ical-001.ical create mode 100644 test/data/ical-002.ical create mode 100644 test/data/ical-003.ical (limited to 'test/data') diff --git a/test/data/ical-001.ical b/test/data/ical-001.ical new file mode 100644 index 0000000..e4a1f78 --- /dev/null +++ b/test/data/ical-001.ical @@ -0,0 +1,12 @@ +BEGIN:VCALENDAR +VERSION:2.0 +BEGIN:VEVENT +DTSTART:19020101T000100 +DURATION:P1DT9H17M0S +SUMMARY:Calibrator's +END:VEVENT +BEGIN:VTODO +PRIORITY:1 +SUMMARY:Nary parabled Louvre's fleetest mered +END:VTODO +END:VCALENDAR diff --git a/test/data/ical-002.ical b/test/data/ical-002.ical new file mode 100644 index 0000000..915b84e --- /dev/null +++ b/test/data/ical-002.ical @@ -0,0 +1,28 @@ +BEGIN:VCALENDAR +VERSION:2.0 +BEGIN:VEVENT +DTSTART:20000101T000000 +DURATION:P1DT0H0M0S +SUMMARY:One day +END:VEVENT +BEGIN:VEVENT +DTSTART:20000101T000000 +DURATION:P1DT1H1M1S +SUMMARY:One day, one hour, one minute and one second +END:VEVENT +BEGIN:VEVENT +DTSTART:20000101T000000 +DURATION:PT1H1M1S +SUMMARY:One hour, one minute and one second +END:VEVENT +BEGIN:VEVENT +DTSTART:20000101T000000 +DURATION:PT1M1S +SUMMARY:One minute and one second +END:VEVENT +BEGIN:VEVENT +DTSTART:20000101T000000 +DURATION:PT1S +SUMMARY:One second +END:VEVENT +END:VCALENDAR diff --git a/test/data/ical-003.ical b/test/data/ical-003.ical new file mode 100644 index 0000000..599d24f --- /dev/null +++ b/test/data/ical-003.ical @@ -0,0 +1,25 @@ +BEGIN:VCALENDAR +VERSION:2.0 +BEGIN:VEVENT +DTSTART:20000101T000000 +DURATION:PT1H30M0S +RRULE:FREQ=DAILY;INTERVAL=2;UNTIL=20000201T000000;WKST=SU +EXDATE:20000115T000000,20000123T000000 +SUMMARY:Recurring appointment +END:VEVENT +BEGIN:VEVENT +DTSTART:20000101T000000 +DURATION:PT1H30M0S +RRULE:FREQ=WEEKLY;INTERVAL=1;UNTIL=20000201T000000;WKST=SU +EXDATE:20000122T000000 +SUMMARY:Weekly appointment +END:VEVENT +BEGIN:VEVENT +DTSTART:20000201T000000 +DURATION:PT1H30M0S +RRULE:FREQ=DAILY;INTERVAL=2;UNTIL=20000301T000000;WKST=SU +EXDATE:20000215T000000 +EXDATE:20000223T000000 +SUMMARY:Recurring appointment +END:VEVENT +END:VCALENDAR -- cgit v1.2.3-70-g09d2