summaryrefslogtreecommitdiffstats
path: root/tests/clock.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-02-18 14:25:46 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-02-18 14:25:46 (GMT)
commit16cde18103eeee3ef09dae361facb5de33bc3acc (patch)
tree635d94796cb2b3bb30bc416d5ed57e45a62578a0 /tests/clock.test
parenta68e4219149a933c804fbd0e1be9c2fb89fb2fdb (diff)
downloadtcl-16cde18103eeee3ef09dae361facb5de33bc3acc.zip
tcl-16cde18103eeee3ef09dae361facb5de33bc3acc.tar.gz
tcl-16cde18103eeee3ef09dae361facb5de33bc3acc.tar.bz2
tweak error-messages a little more (no quotes here)
Diffstat (limited to 'tests/clock.test')
-rw-r--r--tests/clock.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/clock.test b/tests/clock.test
index c5fb354..5c788e7 100644
--- a/tests/clock.test
+++ b/tests/clock.test
@@ -332,11 +332,11 @@ test clock-1.3 "clock format - empty val" {
test clock-1.4 "clock format - bad flag" {
# range error message for possible extensions:
list [catch {clock format 0 -oops badflag} msg] $msg $::errorCode
-} [subst {1 {bad option "-oops": must be "-format, -gmt, -locale, or -timezone"} {CLOCK badOption -oops}}]
+} [subst {1 {bad option "-oops": must be -format, -gmt, -locale, or -timezone} {CLOCK badOption -oops}}]
test clock-1.4.1 "clock format - unexpected option for this sub-command" {
# range error message for possible extensions:
list [catch {clock format 0 -base 0} msg] $msg $::errorCode
-} [subst {1 {bad option "-base": must be "-format, -gmt, -locale, or -timezone"} {CLOCK badOption -base}}]
+} [subst {1 {bad option "-base": must be -format, -gmt, -locale, or -timezone} {CLOCK badOption -base}}]
test clock-1.5 "clock format - bad timezone" {
list [catch {clock format 0 -format "%s" -timezone :NOWHERE} msg] $msg $::errorCode
@@ -36150,7 +36150,7 @@ test clock-34.8 {clock scan tests} {
} {Oct 23,1992 15:00 GMT}
test clock-34.9 {clock scan tests} {
list [catch {clock scan "Jan 12" -bad arg} msg] $msg
-} [subst {1 {bad option "-bad": must be "-base, -format, -gmt, -locale, -timezone or -validate"}}]
+} [subst {1 {bad option "-bad": must be -base, -format, -gmt, -locale, -timezone or -validate}}]
# The following two two tests test the two year date policy
test clock-34.10 {clock scan tests} {
set time [clock scan "1/1/71" -gmt true]