diff options
author | sebres <sebres@users.sourceforge.net> | 2024-04-17 14:39:21 (GMT) |
---|---|---|
committer | sebres <sebres@users.sourceforge.net> | 2024-04-17 14:39:21 (GMT) |
commit | 84db392d8abafc194588b1850b7efaccf970f4ef (patch) | |
tree | e1b8e07141490bcb557834c7c229fb0387b64bc8 /tests/clock.test | |
parent | d8884ee2ab8b8ebcf1af9e29dce2a8d275ddf5a3 (diff) | |
parent | d801275addeada44d90e9a427deaa3df64ce6494 (diff) | |
download | tcl-84db392d8abafc194588b1850b7efaccf970f4ef.zip tcl-84db392d8abafc194588b1850b7efaccf970f4ef.tar.gz tcl-84db392d8abafc194588b1850b7efaccf970f4ef.tar.bz2 |
merge 8.6 (new clock regression test, illustrating incompatibility of new engine)
Diffstat (limited to 'tests/clock.test')
-rw-r--r-- | tests/clock.test | 8 |
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 \ |