diff options
author | Eli Zaretskii <eliz@gnu.org> | 2020-04-03 14:21:07 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2020-04-03 14:21:07 +0300 |
commit | d8dae04e5ae5cc4897c8d1af8548a0c1576137b6 (patch) | |
tree | 7fe76277745fd42fc16e63fbb78022351356f791 /test/lisp/calendar | |
parent | f134dfa041b30a8c28484a13c2fa08f2fee27ff5 (diff) | |
download | emacs-d8dae04e5ae5cc4897c8d1af8548a0c1576137b6.tar.gz |
Improve last change
* lisp/calendar/time-date.el (date-days-in-month): Improve the
error message text and make sure MONTH is a number. (Bug#40217)
Diffstat (limited to 'test/lisp/calendar')
-rw-r--r-- | test/lisp/calendar/time-date-tests.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lisp/calendar/time-date-tests.el b/test/lisp/calendar/time-date-tests.el index 9c90300cfe6..3eecc67eb53 100644 --- a/test/lisp/calendar/time-date-tests.el +++ b/test/lisp/calendar/time-date-tests.el @@ -32,7 +32,8 @@ (should (= (date-days-in-month 2004 2) 29)) (should (= (date-days-in-month 2004 3) 31)) (should-not (= (date-days-in-month 1900 3) 28)) - (should-error (date-days-in-month 2020 15))) + (should-error (date-days-in-month 2020 15)) + (should-error (date-days-in-month 2020 'foo))) (ert-deftest test-ordinal () (should (equal (date-ordinal-to-time 2008 271) |