diff options
| author | sebres <sebres@users.sourceforge.net> | 2024-04-17 14:19:11 (GMT) |
|---|---|---|
| committer | sebres <sebres@users.sourceforge.net> | 2024-04-17 14:19:11 (GMT) |
| commit | 36af908cce918284fa9b161a67b6c8d9df59e487 (patch) | |
| tree | c9865802c47bfa1d798a0b3a1ba63c8ead99b859 | |
| parent | e99b71fffc59f4d478209896bd6055d454aa5d4a (diff) | |
| download | tcl-36af908cce918284fa9b161a67b6c8d9df59e487.zip tcl-36af908cce918284fa9b161a67b6c8d9df59e487.tar.gz tcl-36af908cce918284fa9b161a67b6c8d9df59e487.tar.bz2 | |
clock.test: added regression test - spaces between some scan tokens are optional (illustrating that although clock is strong, it may be sometimes weak :)
| -rw-r--r-- | tests/clock.test | 10 |
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 |
