From 76f151ff375f2985026f4d5d738c8e2c769a1bce Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 18 Aug 2014 15:13:46 +0200 Subject: Correctly parse all types of iCal durations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was supposed to be fixed in 6ca2535 (ical.c: Simplify and fix ical_durtime2long(), 2014-07-28) but some cases were not covered. Reported-by: HÃ¥kan Jerning Signed-off-by: Lukas Fleischer --- test/data/ical-006.ical | 63 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 test/data/ical-006.ical (limited to 'test/data') diff --git a/test/data/ical-006.ical b/test/data/ical-006.ical new file mode 100644 index 0000000..7b2e102 --- /dev/null +++ b/test/data/ical-006.ical @@ -0,0 +1,63 @@ +BEGIN:VCALENDAR +VERSION:2.0 +BEGIN:VEVENT +SUMMARY:5 hours +DTSTART;TZID=Europe/Stockholm:20120601T150000 +DURATION:PT5H +END:VEVENT +BEGIN:VEVENT +SUMMARY:5 hours +DTSTART;TZID=Europe/Stockholm:20120601T150000 +DURATION:PT5H0M +END:VEVENT +BEGIN:VEVENT +SUMMARY:5 hours +DTSTART;TZID=Europe/Stockholm:20120601T150000 +DURATION:PT5H0S +END:VEVENT +BEGIN:VEVENT +SUMMARY:5 hours +DTSTART;TZID=Europe/Stockholm:20120601T150000 +DURATION:PT5H0M0S +END:VEVENT +BEGIN:VEVENT +SUMMARY:30 minutes +DTSTART;TZID=Europe/Stockholm:20120601T150000 +DURATION:PT30M +END:VEVENT +BEGIN:VEVENT +SUMMARY:30 minutes +DTSTART;TZID=Europe/Stockholm:20120601T150000 +DURATION:PT0H30M +END:VEVENT +BEGIN:VEVENT +SUMMARY:30 minutes +DTSTART;TZID=Europe/Stockholm:20120601T150000 +DURATION:PT30M0S +END:VEVENT +BEGIN:VEVENT +SUMMARY:30 minutes +DTSTART;TZID=Europe/Stockholm:20120601T150000 +DURATION:PT0H30M0S +END:VEVENT +BEGIN:VEVENT +SUMMARY:5 hours and 30 minutes +DTSTART;TZID=Europe/Stockholm:20120601T150000 +DURATION:PT5H30M +END:VEVENT +BEGIN:VEVENT +SUMMARY:5 hours and 30 minutes +DTSTART;TZID=Europe/Stockholm:20120601T150000 +DURATION:PT5H30M0S +END:VEVENT +BEGIN:VEVENT +SUMMARY:5 hours and 10 seconds +DTSTART;TZID=Europe/Stockholm:20120601T150000 +DURATION:PT5H10S +END:VEVENT +BEGIN:VEVENT +SUMMARY:5 hours, 30 minutes and 10 seconds +DTSTART;TZID=Europe/Stockholm:20120601T150000 +DURATION:PT5H30M10S +END:VEVENT +END:VCALENDAR -- cgit v1.2.3-70-g09d2