Skip to content

Commit 46312b0

Browse files
committed
small amend (better explaining test titles)
1 parent 92a66db commit 46312b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/clock.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,15 +337,15 @@ test clock-1.4.1 "clock format - unexpected option for this sub-command" {
337337
list [catch {clock format 0 -base 0} msg] $msg $::errorCode
338338
} [subst {1 {bad option "-base": should be "$syntax"} {CLOCK badOption -base}}]
339339

340-
test clock-1.5 "clock format - bad timezone" -body {
340+
test clock-1.5 "clock format - bad timezone (not found)" -body {
341341
clock format 0 -format "%s" -timezone :NOWHERE
342342
} -returnCodes 1 -result {time zone ":NOWHERE" not found} -errorCode {CLOCK badTimeZone :NOWHERE}
343343
foreach tz [list {*}{
344344
../UNSAFEPATH/NOWHERE UNSAFEPATH/../GMT //UNSAFEPATH/NOWHERE
345345
zipfs:/UNSAFEPATH/NOWHERE C:/UNSAFEPATH/NOWHERE
346346
} [list $::tcl::clock::DataDir/GMT]
347347
] {
348-
test clock-1.5.1 "clock format - bad timezone" -body {
348+
test clock-1.5.1 "clock format - bad timezone (not valid - unsafe path)" -body {
349349
clock format 0 -format "%s" -timezone $tz
350350
} -returnCodes 1 -result "time zone \":$tz\" not valid" -errorCode [list CLOCK badTimeZone :$tz]
351351
}

0 commit comments

Comments
 (0)