Skip to content

[210_15] 修改 srfi-19 time-utc date相互转化实现,添加测试#411

Merged
jackmath5261-bit merged 4 commits intomainfrom
jie/210_15/revise
Feb 12, 2026
Merged

[210_15] 修改 srfi-19 time-utc date相互转化实现,添加测试#411
jackmath5261-bit merged 4 commits intomainfrom
jie/210_15/revise

Conversation

@jackmath5261-bit
Copy link
Contributor

No description provided.

Copy link
Collaborator

@jetjinser jetjinser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

其他没问题

Comment on lines 1018 to 1037
;; time-utc -> date -> time-utc round-trip cases
(let* ((t1 (make-time TIME-UTC 0 0))
(d (time-utc->date t1))
(t2 (date->time-utc d)))
(check (time=? t1 t2) => #t))

(let* ((t1 (make-time TIME-UTC 123456789 98765))
(d (time-utc->date t1))
(t2 (date->time-utc d)))
(check (time=? t1 t2) => #t))

(let* ((t1 (make-time TIME-UTC 500000000 -12345))
(d (time-utc->date t1))
(t2 (date->time-utc d)))
(check (time=? t1 t2) => #t))

(let* ((t1 (make-time TIME-UTC 0 1704067200))
(d (time-utc->date t1))
(t2 (date->time-utc d)))
(check (time=? t1 t2) => #t))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这几个用 check-true

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已改

@jackmath5261-bit jackmath5261-bit merged commit 629152a into main Feb 12, 2026
4 checks passed
@jackmath5261-bit jackmath5261-bit deleted the jie/210_15/revise branch February 12, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants