From ed4281ff072443167c43207c039570126061d23b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 12 Apr 2022 13:30:32 +0200 Subject: Add a lot of new unit tests. --- tests/test/datetime.scm | 214 +++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 203 insertions(+), 11 deletions(-) (limited to 'tests/test/datetime.scm') diff --git a/tests/test/datetime.scm b/tests/test/datetime.scm index d9c08ec2..8648006b 100644 --- a/tests/test/datetime.scm +++ b/tests/test/datetime.scm @@ -12,7 +12,7 @@ :use-module ((ice-9 format) :select (format)) :use-module ((hnh util) :select (let*)) :use-module ((ice-9 i18n) :select (make-locale)) - :use-module ((guile) :select (LC_TIME))) + :use-module ((guile) :select (LC_CTYPE LC_TIME))) (test-equal "empty time" @@ -55,6 +55,17 @@ "~a" #2020-01-01)) +(test-equal "time print" + "#20:30:40" + (format #f "~a" #20:30:40)) + +(test-equal "time print bad" + "#<