diff options
author | sebres <sebres@users.sourceforge.net> | 2024-04-17 14:55:31 (GMT) |
---|---|---|
committer | sebres <sebres@users.sourceforge.net> | 2024-04-17 14:55:31 (GMT) |
commit | 6c80da1011578d506f7575279acf3c8109812bff (patch) | |
tree | 258748c69ddb5dd9997897099cb8aa954b5dcf1d /tests/clock.test | |
parent | 84db392d8abafc194588b1850b7efaccf970f4ef (diff) | |
download | tcl-6c80da1011578d506f7575279acf3c8109812bff.zip tcl-6c80da1011578d506f7575279acf3c8109812bff.tar.gz tcl-6c80da1011578d506f7575279acf3c8109812bff.tar.bz2 |
restore backwards compatibility (see clock-44.3) - spaces between tokens are optional, repaired greedy search (minLen), which find start next token or space now;
it is also more consistent than old engine now (covered by clock-44.4)
Diffstat (limited to 'tests/clock.test')
-rw-r--r-- | tests/clock.test | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/clock.test b/tests/clock.test index dec7b87..8072a68 100644 --- a/tests/clock.test +++ b/tests/clock.test @@ -37039,12 +37039,18 @@ test clock-44.2 {regression test - time zone containing only two digits} \ } \ -result 482134530 -test clock-44.3 {regression test - spaces between some scan tokens are optional} \ +test clock-44.3 {regression test - spaces between some scan tokens are optional (TCL_CLOCK_FULL_COMPAT, no-strict only)} \ -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-44.4 {regression test - spaces between all scan tokens are optional (TCL_CLOCK_FULL_COMPAT, no-strict only)} \ + -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 { |