diff options
| author | donal.k.fellows@manchester.ac.uk <dkf> | 2007-11-23 15:00:19 (GMT) |
|---|---|---|
| committer | donal.k.fellows@manchester.ac.uk <dkf> | 2007-11-23 15:00:19 (GMT) |
| commit | 1a775102d8fe409bf06b0823c2049b50bb46a6b3 (patch) | |
| tree | aad5ba949ee5e2585cf8a1ca53c758cd0ba868a9 /tests/stringComp.test | |
| parent | 79b9a58318a75b199ee3fb611ab341a7b4a6bce1 (diff) | |
| download | tcl-1a775102d8fe409bf06b0823c2049b50bb46a6b3.zip tcl-1a775102d8fe409bf06b0823c2049b50bb46a6b3.tar.gz tcl-1a775102d8fe409bf06b0823c2049b50bb46a6b3.tar.bz2 | |
Turn the [string] command into a real compiled ensemble.
Diffstat (limited to 'tests/stringComp.test')
| -rw-r--r-- | tests/stringComp.test | 6 |
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. |
