diff options
author | dgp <dgp@users.sourceforge.net> | 2007-02-06 21:08:05 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2007-02-06 21:08:05 (GMT) |
commit | 11d70a65e6f7578f2d0e486b978142e3bcdcc304 (patch) | |
tree | 7ad5524122d1e3696248043277e03193466d2d73 /tests | |
parent | 88cd3810ef18b4e05cae8aebda92c41155ce7f1a (diff) | |
download | tcl-11d70a65e6f7578f2d0e486b978142e3bcdcc304.zip tcl-11d70a65e6f7578f2d0e486b978142e3bcdcc304.tar.gz tcl-11d70a65e6f7578f2d0e486b978142e3bcdcc304.tar.bz2 |
* generic/tclNamesp.c: Corrected broken implementation of the
* tests/namespace.test: TclMatchIsTrivial optimization on
[namespace children $namespace $pattern].
Diffstat (limited to 'tests')
-rw-r--r-- | tests/namespace.test | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/namespace.test b/tests/namespace.test index 3f1f5dc..b712f01 100644 --- a/tests/namespace.test +++ b/tests/namespace.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: namespace.test,v 1.63 2006/11/23 15:35:31 dkf Exp $ +# RCS: @(#) $Id: namespace.test,v 1.64 2007/02/06 21:08:07 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -914,6 +914,11 @@ test namespace-21.7 {NamespaceChildrenCmd, glob-style pattern given} { namespace eval test_ns_1::test_ns_foo {} lsort [namespace children test_ns_1 test*] } [lsort {::test_ns_1::test_ns_2 ::test_ns_1::test_ns_foo}] +test namespace-21.8 {NamespaceChildrenCmd, trivial pattern starting with ::} { + namespace eval test_ns_1 {} + namespace children [namespace current] \ + [string trimright [namespace current] :]::test_ns_1 +} [string trimright [namespace current] :]::test_ns_1 test namespace-22.1 {NamespaceCodeCmd, bad args} { catch {namespace delete {*}[namespace children :: test_ns_*]} |