diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2001-04-07 02:08:05 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2001-04-07 02:08:05 (GMT) |
commit | f4aae297ab93a93609f6e467d30b0e022440daab (patch) | |
tree | 27e01be7c5657ec2023a9068839d964791e9e29d /tests/namespace-old.test | |
parent | 9777db5094c42eabbad41300b9a61e15b1998aae (diff) | |
download | tcl-f4aae297ab93a93609f6e467d30b0e022440daab.zip tcl-f4aae297ab93a93609f6e467d30b0e022440daab.tar.gz tcl-f4aae297ab93a93609f6e467d30b0e022440daab.tar.bz2 |
Corrected behaviour of [namespace code] (bug #219385, patch #403530)
Diffstat (limited to 'tests/namespace-old.test')
-rw-r--r-- | tests/namespace-old.test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/namespace-old.test b/tests/namespace-old.test index 42e2967..5137051 100644 --- a/tests/namespace-old.test +++ b/tests/namespace-old.test @@ -14,7 +14,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-old.test,v 1.5 2000/04/10 17:19:02 ericm Exp $ +# RCS: @(#) $Id: namespace-old.test,v 1.6 2001/04/07 02:11:19 msofer Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -804,17 +804,17 @@ test namespace-old-10.4 {command "namespace code" gets current namesp context} { namespace eval test_ns_inscope { namespace code {"1 2 3" "4 5" 6} } -} {namespace inscope ::test_ns_inscope {"1 2 3" "4 5" 6}} +} {::namespace inscope ::test_ns_inscope {"1 2 3" "4 5" 6}} test namespace-old-10.5 {with one arg, first "scope" sticks} { set sval [namespace eval test_ns_inscope {namespace code {one two}}] namespace code $sval -} {namespace inscope ::test_ns_inscope {one two}} +} {::namespace inscope ::test_ns_inscope {one two}} test namespace-old-10.6 {with many args, each "scope" adds new args} { set sval [namespace eval test_ns_inscope {namespace code {one two}}] namespace code "$sval three" -} {namespace inscope ::test_ns_inscope {one two} three} +} {::namespace inscope ::test_ns_inscope {one two} three} test namespace-old-10.7 {scoped commands work with eval} { set cref [namespace eval test_ns_inscope {namespace code show}] |