summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/clock.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/clock.test b/tests/clock.test
index a0b2a6a..dec7b87 100644
--- a/tests/clock.test
+++ b/tests/clock.test
@@ -37032,12 +37032,20 @@ test clock-44.1 {regression test - time zone name containing hyphen } \
}
} \
-result {12:34:56-0500}
+
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
} \
-result 482134530
+test clock-44.3 {regression test - spaces between some scan tokens are optional} \
+ -body {
+ list [clock scan {9 Apr 2024} -format {%d %b%Y} -gmt 1] \
+ [clock scan {Tue, 9 Apr 2024 00:00:00 +0000} -format {%a, %d %b%Y %H:%M:%S %Z} -gmt 1]
+ } \
+ -result {1712620800 1712620800}
+
test clock-45.1 {compat: scan regression on spaces (multiple spaces in format)} \
-body {
list \