aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorUlf Jasper2016-11-23 18:09:34 +0100
committerUlf Jasper2016-11-23 18:09:34 +0100
commitf8e1b18d37e46f320ba0bd81efbbcf557c1f64d7 (patch)
treedeb04c35c64c93b7f19879c993fdeb5786a1a5db /test
parentd8a1a56f5bce64d6ea6ccecdf1aaa4eb3a9898da (diff)
downloademacs-f8e1b18d37e46f320ba0bd81efbbcf557c1f64d7.tar.gz
emacs-f8e1b18d37e46f320ba0bd81efbbcf557c1f64d7.zip
Fix Bug#24199.
* lisp/calendar/icalendar.el (icalendar--do-create-ical-alarm): Quote bracket in doc string (make checkdoc happy). (icalendar-import-buffer), (icalendar-import-buffer), (icalendar--convert-ical-to-diary), (icalendar--add-diary-entry): Rename argument diary-file to diary-filename (make checkdoc happy). (icalendar--convert-recurring-to-diary): Take care of byday-clause in monthly recurring events. Actually fix Bug#24199. * test/lisp/calendar/icalendar-tests.el (icalendar-import-bug-24199): New.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/calendar/icalendar-tests.el44
1 files changed, 44 insertions, 0 deletions
diff --git a/test/lisp/calendar/icalendar-tests.el b/test/lisp/calendar/icalendar-tests.el
index 6db4222697e..307d687f2af 100644
--- a/test/lisp/calendar/icalendar-tests.el
+++ b/test/lisp/calendar/icalendar-tests.el
@@ -1257,6 +1257,50 @@ UID:8814e3f9-7482-408f-996c-3bfe486a1263
1257 UID: 8814e3f9-7482-408f-996c-3bfe486a1263 1257 UID: 8814e3f9-7482-408f-996c-3bfe486a1263
1258")) 1258"))
1259 1259
1260(ert-deftest icalendar-import-bug-24199 ()
1261 ;;bug#24199 -- monthly rule with byday-clause
1262 (icalendar-tests--test-import
1263"
1264SUMMARY:Summary
1265DESCRIPTION:Desc
1266LOCATION:Loc
1267DTSTART:20151202T124600
1268DTEND:20151202T160000
1269RRULE:FREQ=MONTHLY;BYDAY=1WE;INTERVAL=1
1270EXDATE:20160106T114600Z
1271EXDATE:20160203T114600Z
1272EXDATE:20160302T114600Z
1273EXDATE:20160504T104600Z
1274EXDATE:20160601T104600Z
1275CLASS:DEFAULT
1276TRANSP:OPAQUE
1277BEGIN:VALARM
1278ACTION:DISPLAY
1279TRIGGER;VALUE=DURATION:-PT3H
1280END:VALARM
1281LAST-MODIFIED:20160805T191040Z
1282UID:9188710a-08a7-4061-bae3-d4cf4972599a
1283"
1284"&%%(and (not (diary-date 2016 1 6)) (not (diary-date 2016 2 3)) (not (diary-date 2016 3 2)) (not (diary-date 2016 5 4)) (not (diary-date 2016 6 1)) (diary-float t 3 1) (diary-block 2015 12 2 9999 1 1)) 12:46-16:00 Summary
1285 Desc: Desc
1286 Location: Loc
1287 Class: DEFAULT
1288 UID: 9188710a-08a7-4061-bae3-d4cf4972599a
1289"
1290"&%%(and (not (diary-date 6 1 2016)) (not (diary-date 3 2 2016)) (not (diary-date 2 3 2016)) (not (diary-date 4 5 2016)) (not (diary-date 1 6 2016)) (diary-float t 3 1) (diary-block 2 12 2015 1 1 9999)) 12:46-16:00 Summary
1291 Desc: Desc
1292 Location: Loc
1293 Class: DEFAULT
1294 UID: 9188710a-08a7-4061-bae3-d4cf4972599a
1295"
1296"&%%(and (not (diary-date 1 6 2016)) (not (diary-date 2 3 2016)) (not (diary-date 3 2 2016)) (not (diary-date 5 4 2016)) (not (diary-date 6 1 2016)) (diary-float t 3 1) (diary-block 12 2 2015 1 1 9999)) 12:46-16:00 Summary
1297 Desc: Desc
1298 Location: Loc
1299 Class: DEFAULT
1300 UID: 9188710a-08a7-4061-bae3-d4cf4972599a
1301"
1302))
1303
1260(ert-deftest icalendar-import-multiple-vcalendars () 1304(ert-deftest icalendar-import-multiple-vcalendars ()
1261 (icalendar-tests--test-import 1305 (icalendar-tests--test-import
1262 "DTSTART;VALUE=DATE:20110723 1306 "DTSTART;VALUE=DATE:20110723