[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 32/55: Fix tests for SRFI-19 date->string ~N
From: |
Andy Wingo |
Subject: |
[Guile-commits] 32/55: Fix tests for SRFI-19 date->string ~N |
Date: |
Thu, 23 May 2019 11:52:41 -0400 (EDT) |
wingo pushed a commit to branch master
in repository guile.
commit 1b0fcddba54f5404f95599a02e3430448403e4a7
Author: Daniel Llorens <address@hidden>
Date: Wed Dec 12 08:01:05 2018 +0100
Fix tests for SRFI-19 date->string ~N
---
test-suite/tests/srfi-19.test | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/test-suite/tests/srfi-19.test b/test-suite/tests/srfi-19.test
index 256ff74..1d56214 100644
--- a/test-suite/tests/srfi-19.test
+++ b/test-suite/tests/srfi-19.test
@@ -177,14 +177,18 @@ incomplete numerical tower implementation.)"
(date->string date))))
(pass-if "string->date understands nanoseconds (1)"
- (time=? (date->time-utc (string->date "2018-12-10 10:53:24.189"
- "~Y-~m-~d ~H:~M:~S.~N"))
- (date->time-utc (make-date 189000000 24 53 10 10 12 2018 3600))))
+ (let ((date (string->date "2018-12-10 10:53:24.189"
+ "~Y-~m-~d ~H:~M:~S.~N")))
+ (time=? (date->time-utc date)
+ (date->time-utc (make-date 189000000 24 53 10 10 12 2018
+ (date-zone-offset date))))))
(pass-if "string->date understands nanoseconds (2)"
- (time=? (date->time-utc (string->date "2018-12-10 10:53:24.189654321"
- "~Y-~m-~d ~H:~M:~S.~N"))
- (date->time-utc (make-date 189654321 24 53 10 10 12 2018 3600))))
+ (let ((date (string->date "2018-12-10 10:53:24.189654321"
+ "~Y-~m-~d ~H:~M:~S.~N")))
+ (time=? (date->time-utc date)
+ (date->time-utc (make-date 189654321 24 53 10 10 12 2018
+ (date-zone-offset date))))))
(pass-if "date->string pads small nanoseconds values correctly"
(let* ((date (make-date 99999999 5 34 12 26 3 2017 0)))
- [Guile-commits] 20/55: SRFI-19: Fix handling of negative years and negative julian days., (continued)
- [Guile-commits] 20/55: SRFI-19: Fix handling of negative years and negative julian days., Andy Wingo, 2019/05/23
- [Guile-commits] 37/55: Avoid leaking a file descriptor in test-unwind, Andy Wingo, 2019/05/23
- [Guile-commits] 38/55: Fix binary output on files created by mkstemp!, Andy Wingo, 2019/05/23
- [Guile-commits] 43/55: Fix typo in comment., Andy Wingo, 2019/05/23
- [Guile-commits] 04/55: Define AT_SYMLINK_NOFOLLOW et al., Andy Wingo, 2019/05/23
- [Guile-commits] 08/55: Fix list validation of *list->bytevector procedures., Andy Wingo, 2019/05/23
- [Guile-commits] 13/55: Update SRFI-19 leap second table., Andy Wingo, 2019/05/23
- [Guile-commits] 05/55: Fix 'atomic-box-compare-and-swap!'., Andy Wingo, 2019/05/23
- [Guile-commits] 26/55: Add texinfo dependency to README, Andy Wingo, 2019/05/23
- [Guile-commits] 27/55: Bootstrap optimization, Andy Wingo, 2019/05/23
- [Guile-commits] 32/55: Fix tests for SRFI-19 date->string ~N,
Andy Wingo <=
- [Guile-commits] 33/55: Do not warn the user when 'madvise' returns ENOSYS., Andy Wingo, 2019/05/23
- [Guile-commits] 30/55: Update (ice-9 match) to include selected bug fixes from upstream., Andy Wingo, 2019/05/23
- [Guile-commits] 31/55: Support ~N in SRFI-19 string->date, Andy Wingo, 2019/05/23
- [Guile-commits] 28/55: Documentation fixes, Andy Wingo, 2019/05/23
- [Guile-commits] 42/55: Disable test for current value of setitimer on Cygwin, Andy Wingo, 2019/05/23
- [Guile-commits] 29/55: Fix spelling of ellipsis in (ice-9 match)., Andy Wingo, 2019/05/23
- [Guile-commits] 53/55: put-u8: Always write a single byte, regardless of the port encoding., Andy Wingo, 2019/05/23
- [Guile-commits] 52/55: Optimize fixnum exact integer square roots., Andy Wingo, 2019/05/23
- [Guile-commits] 44/55: Avoid passing NULL to 'memcpy' and 'memcmp'., Andy Wingo, 2019/05/23
- [Guile-commits] 14/55: Fix typos, indentation and error reporting in SRFI-19., Andy Wingo, 2019/05/23