tests/: Add basic iCal import tests

Tests ical-002.sh and ical-003.sh currently fail due to bugs in duration
and exception parsing.

Reported-by: Håkan Jerning <jerning@home.se>
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2014-07-28 12:24:21 +02:00
parent 132cf86a6f
commit 81894cbbd8
7 changed files with 267 additions and 0 deletions

28
test/data/ical-002.ical Normal file
View File

@@ -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