summaryrefslogtreecommitdiffstats
path: root/tests/clock.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-07-09 08:10:18 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-07-09 08:10:18 (GMT)
commit5079cec18ef8f675f3efaa9d7b928755ca6c136d (patch)
tree06897d82f319ef6d60070a1aafb1620b9f21d8dc /tests/clock.test
parent4424192e29ebce4b3f82ec659919dae81203d2fb (diff)
parent1dfea026b838bf256caed3e3266f5d310f289a35 (diff)
downloadtcl-5079cec18ef8f675f3efaa9d7b928755ca6c136d.zip
tcl-5079cec18ef8f675f3efaa9d7b928755ca6c136d.tar.gz
tcl-5079cec18ef8f675f3efaa9d7b928755ca6c136d.tar.bz2
Merge 8.6
Diffstat (limited to 'tests/clock.test')
-rw-r--r--tests/clock.test24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/clock.test b/tests/clock.test
index f9db14b..faa3bcd 100644
--- a/tests/clock.test
+++ b/tests/clock.test
@@ -35660,6 +35660,30 @@ test clock-34.18 {clock scan, ISO 8601 point in time format} {
set time [clock scan "19921023T000000"]
clock format $time -format {%b %d, %Y %H:%M:%S}
} "Oct 23, 1992 00:00:00"
+test clock-34.19 {clock scan, ISO 8601 point in time format} {
+ set time [clock scan "19921023T00:00:00"]
+ clock format $time -format {%b %d, %Y %H:%M:%S}
+} "Oct 23, 1992 00:00:00"
+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