diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/data/ical-009.ical | 35 | ||||
-rwxr-xr-x | test/ical-009.sh | 14 |
2 files changed, 45 insertions, 4 deletions
diff --git a/test/data/ical-009.ical b/test/data/ical-009.ical index 39ae422..1828417 100644 --- a/test/data/ical-009.ical +++ b/test/data/ical-009.ical @@ -76,6 +76,41 @@ SUMMARY:LOCATION twice LOCATION:first LOCATION:second END:VEVENT +BEGIN:VEVENT +DTSTART;VALUE=DATE:20200406 +DURATION:PT0H15M0S +SUMMARY:Invalid duration (must be days or weeks) +END:VEVENT +BEGIN:VEVENT +DTSTART:20200406 +DURATION:P1D +SUMMARY:Invalid DTSTART value type +END:VEVENT +BEGIN:VEVENT +DTSTART;VALUE=DATE:20200406 +SUMMARY:Invalid DTEND value type +DTEND:20200407 +END:VEVENT +BEGIN:VEVENT +DTSTART;VALUE=DATE:20200406 +DURATION:P1D +RRULE:FREQ=MONTHLY;UNTIL=20201030T120000Z +SUMMARY:Invalid UNTIL value +END:VEVENT +BEGIN:VEVENT +DTSTART;VALUE=DATE:20200406 +DURATION:P1D +RRULE:FREQ=MONTHLY;UNTIL=20201030 +EXDATE:20200606 +SUMMARY:Invalid EXDATE value type +END:VEVENT +BEGIN:VEVENT +DTSTART;VALUE=DATE:20200406 +DURATION:P1D +RRULE:FREQ=MONTHLY;UNTIL=20201030 +EXDATE;VALUE=DATE:20200606T120000Z +SUMMARY:Invalid EXDATE value +END:VEVENT BEGIN:VTODO SUMMARY:finally\, missing end of item END:VCALENDAR diff --git a/test/ical-009.sh b/test/ical-009.sh index d912f5c..c8c1c9c 100755 --- a/test/ical-009.sh +++ b/test/ical-009.sh @@ -17,9 +17,9 @@ if [ "$1" = 'actual' ]; then rm -rf .calcurse || exit 1 elif [ "$1" = 'expected' ]; then cat <<EOD -Import process report: 0081 lines read -2 apps / 0 events / 1 todo / 12 skipped -VEVENT [12]: could not retrieve event start time. +Import process report: 0116 lines read +2 apps / 0 events / 1 todo / 18 skipped +VEVENT [12]: invalid or malformed event start time. VEVENT [17]: recurrence frequency not recognized. VEVENT [23]: malformed summary line. VTODO [28]: item priority is invalid (must be between 0 and 9). @@ -30,7 +30,13 @@ VEVENT [50]: malformed description. VTODO [62]: malformed summary. VEVENT [66]: invalid status value. VEVENT [72]: only one location allowed. -VTODO [79]: The ical file seems to be malformed. The end of item was not found. +VEVENT [79]: invalid duration. +VEVENT [84]: invalid or malformed event start time. +VEVENT [89]: invalid end time value type. +VEVENT [94]: invalid until format. +VEVENT [100]: invalid exception date value type. +VEVENT [107]: invalid exception. +VTODO [114]: The ical file seems to be malformed. The end of item was not found. 101 EOD else |