summaryrefslogtreecommitdiffstats
path: root/tests/stringComp.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-11-23 15:00:19 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-11-23 15:00:19 (GMT)
commitb400e7071cf4016d6bcc94da3ab8cd195c59c222 (patch)
treeaad5ba949ee5e2585cf8a1ca53c758cd0ba868a9 /tests/stringComp.test
parent992b51fc822addcd91ae1ea44e0df3486e654c3d (diff)
downloadtcl-b400e7071cf4016d6bcc94da3ab8cd195c59c222.zip
tcl-b400e7071cf4016d6bcc94da3ab8cd195c59c222.tar.gz
tcl-b400e7071cf4016d6bcc94da3ab8cd195c59c222.tar.bz2
Turn the [string] command into a real compiled ensemble.
Diffstat (limited to 'tests/stringComp.test')
-rw-r--r--tests/stringComp.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/stringComp.test b/tests/stringComp.test
index 961557b..2436ce6 100644
--- a/tests/stringComp.test
+++ b/tests/stringComp.test
@@ -15,7 +15,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: stringComp.test,v 1.13 2007/10/15 21:27:50 dgp Exp $
+# RCS: @(#) $Id: stringComp.test,v 1.14 2007/11/23 15:00:26 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -29,11 +29,11 @@ testConstraint testobj [expr {[info commands testobj] != {}}]
test stringComp-1.1 {error conditions} {
proc foo {} {string gorp a b}
list [catch {foo} msg] $msg
-} {1 {bad option "gorp": must be bytelength, compare, equal, first, index, is, last, length, map, match, range, repeat, replace, reverse, tolower, toupper, totitle, trim, trimleft, trimright, wordend, or wordstart}}
+} {1 {unknown or ambiguous subcommand "gorp": must be bytelength, compare, equal, first, index, is, last, length, map, match, range, repeat, replace, reverse, tolower, totitle, toupper, trim, trimleft, trimright, wordend, or wordstart}}
test stringComp-1.2 {error conditions} {
proc foo {} {string}
list [catch {foo} msg] $msg
-} {1 {wrong # args: should be "string option arg ?arg ...?"}}
+} {1 {wrong # args: should be "string subcommand ?argument ...?"}}
test stringComp-1.3 {error condition - undefined method during compile} {
# We don't want this to complain about 'never' because it may never
# be called, or string may get redefined. This must compile OK.