aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Jasper2022-11-24 18:56:50 +0100
committerUlf Jasper2022-11-24 18:59:58 +0100
commitb604bef915e3ec2f2a08f50e5f4799bacdf057da (patch)
tree35b406f473b87381bd2d81631352aeae3c1e5076
parentc6c31b2903b82273da2671986a08edb1bda08214 (diff)
downloademacs-b604bef915e3ec2f2a08f50e5f4799bacdf057da.tar.gz
emacs-b604bef915e3ec2f2a08f50e5f4799bacdf057da.zip
icalendar: Adjust tests after fixing parsing of sexp entries (bug#56241)
* test/lisp/calendar/icalendar-tests.el (icalendar-export-bug-56241-nested-sexps): New. * test/lisp/calendar/icalendar-tests.el (icalendar-real-world): Disable testcase for exporting sexp entries that has now become invalid.
-rw-r--r--test/lisp/calendar/icalendar-tests.el33
1 files changed, 18 insertions, 15 deletions
diff --git a/test/lisp/calendar/icalendar-tests.el b/test/lisp/calendar/icalendar-tests.el
index d9631310ae3..fa55eea95e2 100644
--- a/test/lisp/calendar/icalendar-tests.el
+++ b/test/lisp/calendar/icalendar-tests.el
@@ -1014,15 +1014,15 @@ END:VALARM
1014;; diary-string)))) 1014;; diary-string))))
1015;; '("%%(diary-float 7 0 1) First Sunday in July 1" 1015;; '("%%(diary-float 7 0 1) First Sunday in July 1"
1016;; "%%(icalendar-tests--diary-float 7 0 1) First Sunday in July 2")))) 1016;; "%%(icalendar-tests--diary-float 7 0 1) First Sunday in July 2"))))
1017;; 1017
1018;; (ert-deftest icalendar-export-bug-56241-nested-sexps () 1018(ert-deftest icalendar-export-bug-56241-nested-sexps ()
1019;; "Reported in #bug56241 -- needs to be fixed!" 1019 "Reported in #bug56241 -- needs to be fixed!"
1020;; (let ((icalendar-export-sexp-enumeration-days 366)) 1020 (let ((icalendar-export-sexp-enumeration-days 366))
1021;; (mapc (lambda (diary-string) 1021 (mapc (lambda (diary-string)
1022;; (should (string= "" (icalendar-tests--get-error-string-for-export 1022 (should (string= "" (icalendar-tests--get-error-string-for-export
1023;; diary-string)))) 1023 diary-string))))
1024;; '("%%(= (calendar-day-of-week date) 0) Sunday 1" 1024 '("%%(= (calendar-day-of-week date) 0) Sunday 1"
1025;; "%%(= 0 (calendar-day-of-week date)) Sunday 2")))) 1025 "%%(= 0 (calendar-day-of-week date)) Sunday 2"))))
1026 1026
1027;; ====================================================================== 1027;; ======================================================================
1028;; Import tests 1028;; Import tests
@@ -1482,12 +1482,15 @@ DTEND;VALUE=DATE:19570922
1482RRULE:FREQ=YEARLY;INTERVAL=1;BYMONTH=09;BYMONTHDAY=21 1482RRULE:FREQ=YEARLY;INTERVAL=1;BYMONTH=09;BYMONTHDAY=21
1483SUMMARY:ff birthday (%d years old)") 1483SUMMARY:ff birthday (%d years old)")
1484 1484
1485 1485 ;; FIXME: this testcase verifies that icalendar-export fails to
1486 (icalendar-tests--test-export 1486 ;; export the nested sexp. After repairing bug56241 icalendar-export
1487 nil 1487 ;; works correctly for this sexp but now the testcase fails.
1488 nil 1488 ;; Therefore this testcase is disabled for the time being.
1489 "%%(diary-offset '(diary-float t 3 4) 1) asdf" 1489 ;; (icalendar-tests--test-export
1490 nil) 1490 ;; nil
1491 ;; nil
1492 ;; "%%(diary-offset '(diary-float t 3 4) 1) asdf"
1493 ;; nil)
1491 1494
1492 1495
1493 ;; FIXME! 1496 ;; FIXME!