diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-05-27 21:11:36 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-05-27 21:11:36 (GMT) |
commit | 2956fdc0e0aee7805920004202230103f98d11a9 (patch) | |
tree | a73094482081b010bcde8fdf63f9b197b1570d50 /tests/clock.test | |
parent | dc1e5ec547a5635acaa9d6c052c696db6bc87849 (diff) | |
download | tcl-2956fdc0e0aee7805920004202230103f98d11a9.zip tcl-2956fdc0e0aee7805920004202230103f98d11a9.tar.gz tcl-2956fdc0e0aee7805920004202230103f98d11a9.tar.bz2 |
clock-iso-2.patch
Diffstat (limited to 'tests/clock.test')
-rw-r--r-- | tests/clock.test | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/clock.test b/tests/clock.test index df0315b..f7da08f 100644 --- a/tests/clock.test +++ b/tests/clock.test @@ -35672,6 +35672,22 @@ test clock-34.20 {clock scan, ISO 8601 point in time format} { set time [clock scan "1992-10-23T00:00:00"] clock format $time -format {%b %d, %Y %H:%M:%S} } "Oct 23, 1992 00:00:00" +test clock-34.21 {clock scan, ISO 8601 invalid TZ} -body { + set time [clock scan "19921023MST000000"] + clock format $time -format {%b %d, %Y %H:%M:%S} +} -returnCodes error -match glob -result {unable to convert date-time string*} +test clock-34.22 {clock scan, ISO 8601 invalid TZ} -body { + set time [clock scan "19921023M000000"] + clock format $time -format {%b %d, %Y %H:%M:%S} +} -returnCodes error -match glob -result {unable to convert date-time string*} +test clock-34.23 {clock scan, ISO 8601 invalid TZ} -body { + set time [clock scan "1992-10-23M00:00:00"] + clock format $time -format {%b %d, %Y %H:%M:%S} +} -returnCodes error -match glob -result {unable to convert date-time string*} +test clock-34.24 {clock scan, ISO 8601 invalid TZ} -body { + set time [clock scan "1992-10-23MST00:00:00"] + clock format $time -format {%b %d, %Y %H:%M:%S} +} -returnCodes error -match glob -result {unable to convert date-time string*} # CLOCK SCAN REAL TESTS # We use 5am PST, 31-12-1999 as the base for these scans because irrespective |