]> git.eshelyaron.com Git - emacs.git/commit
Error out if 'date-days-in-month' is given an invalid month
authorAlex Branham <alex.branham@gmail.com>
Tue, 24 Mar 2020 23:34:14 +0000 (19:34 -0400)
committerEli Zaretskii <eliz@gnu.org>
Fri, 3 Apr 2020 11:15:31 +0000 (14:15 +0300)
commitf134dfa041b30a8c28484a13c2fa08f2fee27ff5
tree3f617c21a88881d2297ef9f407c3fb0adf66099d
parentf28166dc9a56111606be8ac50ad38179a66ea636
Error out if 'date-days-in-month' is given an invalid month

* lisp/calendar/time-date.el (date-days-in-month): Add test for
month validity; signal an error if it isn't.  (Bug#40217)
* test/lisp/calendar/time-date-tests.el (test-days-in-month): Add
a test for the new error.
lisp/calendar/time-date.el
test/lisp/calendar/time-date-tests.el