aboutsummaryrefslogtreecommitdiffstats
path: root/test/data
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2014-07-28 12:24:21 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2014-07-28 12:43:00 +0200
commit81894cbbd8496dee4ea6d62d6ffc820482b4197d (patch)
tree2e3ccc05e11cca1da3e8f46c09774c1936181dcf /test/data
parent132cf86a6f10b965a10f5c736e320d61c20cee77 (diff)
downloadcalcurse-81894cbbd8496dee4ea6d62d6ffc820482b4197d.tar.gz
calcurse-81894cbbd8496dee4ea6d62d6ffc820482b4197d.zip
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>
Diffstat (limited to 'test/data')
-rw-r--r--test/data/ical-001.ical12
-rw-r--r--test/data/ical-002.ical28
-rw-r--r--test/data/ical-003.ical25
3 files changed, 65 insertions, 0 deletions
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