diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/calendar/parse-time-tests.el | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/test/lisp/calendar/parse-time-tests.el b/test/lisp/calendar/parse-time-tests.el index 9bcf2b4a53c..6dc23372f24 100644 --- a/test/lisp/calendar/parse-time-tests.el +++ b/test/lisp/calendar/parse-time-tests.el | |||
| @@ -42,7 +42,23 @@ | |||
| 42 | (should (equal (parse-time-string "Monday, 22 february 2016 19:35:42 +0100") | 42 | (should (equal (parse-time-string "Monday, 22 february 2016 19:35:42 +0100") |
| 43 | '(42 35 19 22 2 2016 1 nil 3600))) | 43 | '(42 35 19 22 2 2016 1 nil 3600))) |
| 44 | (should (equal (parse-time-string "Monday, 22 february 2016 19:35:42 PDT") | 44 | (should (equal (parse-time-string "Monday, 22 february 2016 19:35:42 PDT") |
| 45 | '(42 35 19 22 2 2016 1 t -25200)))) | 45 | '(42 35 19 22 2 2016 1 t -25200))) |
| 46 | (should (equal (parse-iso8601-time-string "1998-09-12T12:21:54-0200") | ||
| 47 | '(13818 33666))) | ||
| 48 | (should (equal (parse-iso8601-time-string "1998-09-12T12:21:54-0230") | ||
| 49 | '(13818 35466))) | ||
| 50 | (should (equal (parse-iso8601-time-string "1998-09-12T12:21:54-02:00") | ||
| 51 | '(13818 33666))) | ||
| 52 | (should (equal (parse-iso8601-time-string "1998-09-12T12:21:54-02") | ||
| 53 | '(13818 33666))) | ||
| 54 | (should (equal (parse-iso8601-time-string "1998-09-12T12:21:54+0230") | ||
| 55 | '(13818 17466))) | ||
| 56 | (should (equal (parse-iso8601-time-string "1998-09-12T12:21:54+02") | ||
| 57 | '(13818 19266))) | ||
| 58 | (should (equal (parse-iso8601-time-string "1998-09-12T12:21:54Z") | ||
| 59 | '(13818 26466))) | ||
| 60 | (should (equal (parse-iso8601-time-string "1998-09-12T12:21:54") | ||
| 61 | (encode-time 54 21 12 12 9 1998)))) | ||
| 46 | 62 | ||
| 47 | (provide 'parse-time-tests) | 63 | (provide 'parse-time-tests) |
| 48 | 64 | ||