Extend iCalendar import tests
Tests ical-010.sh and ical-011.sh assume that Github issue #265 has been fixed (escape-encoding by export). Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk> Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
committed by
Lukas Fleischer
parent
ffbf714c9e
commit
e535eff904
2
test/data/apts-export
Normal file
2
test/data/apts-export
Normal file
@@ -0,0 +1,2 @@
|
||||
02/26/2020 @ 07:09 -> 02/26/2020 @ 07:10|Exported, escaped characters in SUMMARY: ,(comma), ;(semicolon) , and \(escape).
|
||||
02/26/2020 [1] Exported, escaped characters in SUMMARY: ,(comma), ;(semicolon) , and \(escape).
|
||||
68
test/data/ical-009.ical
Normal file
68
test/data/ical-009.ical
Normal file
@@ -0,0 +1,68 @@
|
||||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
BEGIN:VEVENT
|
||||
DTSTART:20200318T084100
|
||||
DURATION:PT1H30M0S
|
||||
SUMMARY:A simple appointment
|
||||
END:VEVENT
|
||||
BEGIN:VTODO
|
||||
PRIORITY:1
|
||||
SUMMARY:A simple todo
|
||||
END:VTODO
|
||||
BEGIN:VEVENT
|
||||
DTSTART:
|
||||
DURATION:PT1H30M0S
|
||||
SUMMARY:missing start time
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
DTSTART:20200318T084100
|
||||
DURATION:PT1H30M0S
|
||||
RRULE:FREQ=HOURLY;INTERVAL=2;UNTIL=20200401T000000
|
||||
SUMMARY:unsupported frequency
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
DTSTART:20200318T084100
|
||||
DURATION:PT1H30M0S
|
||||
SUMMARY malformed summary line
|
||||
END:VEVENT
|
||||
BEGIN:VTODO
|
||||
PRIORITY:10
|
||||
SUMMARY:invalid priority
|
||||
END:VTODO
|
||||
BEGIN:VEVENT
|
||||
DTSTART:20200318T084100
|
||||
DURATION:PT1H30M0S
|
||||
RRULE:FREQ=DAILY;INTERVAL=2;UNTIL=20200401T000000
|
||||
EXDATE 20200324T084100
|
||||
SUMMARY:malformed exceptions line
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
DTSTART:20200318T084100
|
||||
DURATION:PT1H30M0S
|
||||
SUMMARY:Summary with more than\none line
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
DTSTART:20200318T084100
|
||||
DURATION:PT1H30M0S
|
||||
SUMMARY:malformed description line
|
||||
DESCRIPTION something is missing
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
DTSTART:20200318T084100
|
||||
DURATION:PT1H30M0S
|
||||
SUMMARY:malformed description
|
||||
DESCRIPTION:description with an unescaped semicolon (;)
|
||||
END:VEVENT
|
||||
BEGIN:VEVENT
|
||||
DTSTART:20200318T084100
|
||||
DURATION:PT1H30M0S
|
||||
SUMMARY:empty DESCRIPTION
|
||||
DESCRIPTION:
|
||||
END:VEVENT
|
||||
BEGIN:VTODO
|
||||
PRIORITY:1
|
||||
SUMMARY:an unescaped comma: ,
|
||||
END:VTODO
|
||||
BEGIN:VTODO
|
||||
SUMMARY:finally\, missing end of item
|
||||
END:VCALENDAR
|
||||
1
test/data/todo-export
Normal file
1
test/data/todo-export
Normal file
@@ -0,0 +1 @@
|
||||
[1] Exported, escaped characters in SUMMARY: ,(comma), ;(semicolon) , and \(escape).
|
||||
Reference in New Issue
Block a user