Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
9767bd2b
Commit
9767bd2b
authored
Sep 29, 2019
by
Lars Ingebrigtsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some commented-out tests for iso8601
parent
96636a8e
Pipeline
#3366
failed with stage
in 90 minutes and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
test/lisp/calendar/iso8601-tests.el
test/lisp/calendar/iso8601-tests.el
+19
-7
No files found.
test/lisp/calendar/iso8601-tests.el
View file @
9767bd2b
...
...
@@ -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"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment