diff options
author | dgp <dgp@users.sourceforge.net> | 2006-02-16 20:21:54 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2006-02-16 20:21:54 (GMT) |
commit | a3023c78f9067c0842660bd8e39479f3bf1060d9 (patch) | |
tree | 3d05db661c9d68e583b5f4ee2bb5d305890088b6 /tests | |
parent | 178e53a0e61ff295e833ba12afb9478747165d24 (diff) | |
download | tcl-a3023c78f9067c0842660bd8e39479f3bf1060d9.zip tcl-a3023c78f9067c0842660bd8e39479f3bf1060d9.tar.gz tcl-a3023c78f9067c0842660bd8e39479f3bf1060d9.tar.bz2 |
* generic/tclIndexObj.c: Disallow the "ambiguous" error message
* generic/indexObj.test: when TCL_EXACT matching is requested.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/indexObj.test | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/indexObj.test b/tests/indexObj.test index 9a8a582..dee0dfa 100644 --- a/tests/indexObj.test +++ b/tests/indexObj.test @@ -8,7 +8,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: indexObj.test,v 1.7 2000/11/24 11:27:38 dkf Exp $ +# RCS: @(#) $Id: indexObj.test,v 1.7.18.1 2006/02/16 20:21:54 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -59,6 +59,9 @@ test indexObj-2.4 {ambiguous value} { test indexObj-2.5 {omit error message} { list [catch {testindexobj 0 1 d x} msg] $msg } {1 {}} +test indexObj-2.6 {TCL_EXACT => no "ambiguous" error message} { + list [catch {testindexobj 1 0 d dumb daughter a c} msg] $msg +} {1 {bad token "d": must be dumb, daughter, a, or c}} test indexObj-3.1 {cache result to skip next lookup} { testindexobj check 42 |