summaryrefslogtreecommitdiffstats
path: root/tests/case.test
diff options
context:
space:
mode:
authornijtmans <nijtmans>2008-07-21 22:22:27 (GMT)
committernijtmans <nijtmans>2008-07-21 22:22:27 (GMT)
commit57bdff7e68cb1e0fe66a2671b18ce67ecbb79e69 (patch)
tree939859d1daf31c3aa07ae3bd9ef742426f0aa190 /tests/case.test
parentee89317ed438f41a8fa968d3a117332e96b7f155 (diff)
downloadtcl-57bdff7e68cb1e0fe66a2671b18ce67ecbb79e69.zip
tcl-57bdff7e68cb1e0fe66a2671b18ce67ecbb79e69.tar.gz
tcl-57bdff7e68cb1e0fe66a2671b18ce67ecbb79e69.tar.bz2
fix [2021443] inconsistant "wrong # args" messages (follow-up)
Diffstat (limited to 'tests/case.test')
-rw-r--r--tests/case.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/case.test b/tests/case.test
index 023fdbb..a9bec93 100644
--- a/tests/case.test
+++ b/tests/case.test
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: case.test,v 1.7 2006/10/09 19:15:44 msofer Exp $
+# RCS: @(#) $Id: case.test,v 1.8 2008/07/21 22:22:28 nijtmans Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -51,7 +51,7 @@ test case-2.1 {error in executed command} {
"case a in a {error "Just a test"} default {format 1}"}}
test case-2.2 {error: not enough args} {
list [catch {case} msg] $msg
-} {1 {wrong # args: should be "case string ?in? patList body ... ?default body?"}}
+} {1 {wrong # args: should be "case string ?in? ?pattern body ...? ?default body?"}}
test case-2.3 {error: pattern with no body} {
list [catch {case a b} msg] $msg
} {1 {extra case pattern with no body}}