summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/clock.test10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/clock.test b/tests/clock.test
index 98a065e..75d7854 100644
--- a/tests/clock.test
+++ b/tests/clock.test
@@ -36083,12 +36083,18 @@ test clock-44.1 {regression test - time zone name containing hyphen } \
} \
-result {12:34:56-0500}
-test clock-45.1 {regression test - time zone containing only two digits} \
+test clock-44.2 {regression test - time zone containing only two digits} \
-body {
- clock scan 1985-04-12T10:15:30+04 -format %Y-%m-%dT%H:%M:%S%Z
+ clock scan 1985-04-12T10:15:30+04 -format %Y-%m-%dT%H:%M:%S%Z
} \
-result 482134530
+test clock-44.3 {regression test - spaces between some scan tokens are optional} \
+ -body {
+ clock scan {9 Apr 2024} -format {%d %b%Y} -gmt 1
+ } \
+ -result 1712620800
+
test clock-46.1 {regression test - month zero} \
-body {
clock scan 2004-00-00 -format %Y-%m-%d