Commit 9767bd2b authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

Add some commented-out tests for iso8601

parent 96636a8e
Pipeline #3366 failed with stage
in 90 minutes and 2 seconds
......@@ -153,13 +153,25 @@
(should (equal (iso8601-parse-time "15")
'(0 0 15 nil nil nil nil nil nil))))
(ert-deftest standard-test-time-of-day-fractions ()
;; decoded-time doesn't support sub-second times.
;; (should (equal (iso8601-parse-time "152735,5")
;; '(46 27 15 nil nil nil nil nil nil)))
;; (should (equal (iso8601-parse-time "15:27:35,5")
;; '(46 27 15 nil nil nil nil nil nil)))
)
;; Not implemented yet.
;; (ert-deftest standard-test-time-of-day-fractions ()
;; (should (equal (iso8601-parse-time "152735,5")
;; '(46 27 15 nil nil nil nil nil nil)))
;; (should (equal (iso8601-parse-time "15:27:35,5")
;; '(46 27 15 nil nil nil nil nil nil)))
;; (should (equal (iso8601-parse-time "2320,8")
;; '(46 27 15 nil nil nil nil nil nil)))
;; (should (equal (iso8601-parse-time "23:20,8")
;; '(46 27 15 nil nil nil nil nil nil)))
;; (should (equal (iso8601-parse-time "23,3")
;; '(46 27 15 nil nil nil nil nil nil))))
;; (ert-deftest nonstandard-test-time-of-day-decimals ()
;; (should (equal (iso8601-parse-time "15:27:35.123")
;; '(46 27 15 nil nil nil nil nil nil))))
(ert-deftest standard-test-time-of-day-beginning-of-day ()
(should (equal (iso8601-parse-time "000000")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment