summaryrefslogtreecommitdiffstats
path: root/tests/info.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-10-31 16:28:20 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-10-31 16:28:20 (GMT)
commit2282409ca3414a57fa47500d32ce4dc879f4425a (patch)
tree7d966e5c19dd93ebd6407cbefb1e2ec7d9e04e34 /tests/info.test
parent3e587a8d4e809cd0c3d885c54560d5c0c7b0c232 (diff)
downloadtcl-2282409ca3414a57fa47500d32ce4dc879f4425a.zip
tcl-2282409ca3414a57fa47500d32ce4dc879f4425a.tar.gz
tcl-2282409ca3414a57fa47500d32ce4dc879f4425a.tar.bz2
Make [info globals ::foo] work. [Bug 1057461]
Diffstat (limited to 'tests/info.test')
-rw-r--r--tests/info.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/info.test b/tests/info.test
index e95fca2..a5343fe 100644
--- a/tests/info.test
+++ b/tests/info.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: info.test,v 1.27 2004/05/19 20:15:31 dkf Exp $
+# RCS: @(#) $Id: info.test,v 1.28 2004/10/31 16:28:21 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -287,6 +287,10 @@ test info-8.2 {info globals option} {
test info-8.3 {info globals option} {
list [catch {info globals 1 2} msg] $msg
} {1 {wrong # args: should be "info globals ?pattern?"}}
+test info-8.4 {info globals option: may have leading namespace qualifiers} {
+ set x 0
+ list [info globals x] [info globals :x] [info globals ::x] [info globals :::x] [info globals ::::x]
+} {x {} x x x}
test info-9.1 {info level option} {
info level