summaryrefslogtreecommitdiffstats
path: root/tests/info.test
diff options
context:
space:
mode:
authorstanton <stanton>1998-06-18 18:25:58 (GMT)
committerstanton <stanton>1998-06-18 18:25:58 (GMT)
commite27be7921a7f70adf89b0c59b976c96c32fae7a8 (patch)
tree0e642457c83579949f1c862535263886e6e1b374 /tests/info.test
parent75b521227f47c2241a4edb7d1e913ac348f05f12 (diff)
downloadtcl-e27be7921a7f70adf89b0c59b976c96c32fae7a8.zip
tcl-e27be7921a7f70adf89b0c59b976c96c32fae7a8.tar.gz
tcl-e27be7921a7f70adf89b0c59b976c96c32fae7a8.tar.bz2
*** empty log message ***
Diffstat (limited to 'tests/info.test')
-rw-r--r--tests/info.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/info.test b/tests/info.test
index 784dad1..38cb8ee 100644
--- a/tests/info.test
+++ b/tests/info.test
@@ -449,6 +449,13 @@ test info-12.6 {info locals vs unset compiled locals} {
}
lsort [t1 {a b c c d e f}]
} {a b c d e f}
+test info-12.7 {info locals with temporary variables} {
+ proc t1 {} {
+ foreach a {b c} {}
+ info locals
+ }
+ t1
+} {a}
test info-13.1 {info nameofexecutable option} {
list [catch {info nameofexecutable foo} msg] $msg
@@ -558,6 +565,13 @@ test info-19.3 {info vars option} {
test info-19.4 {info vars option} {
list [catch {info vars a b} msg] $msg
} {1 {wrong # args: should be "info vars ?pattern?"}}
+test info-19.5 {info vars with temporary variables} {
+ proc t1 {} {
+ foreach a {b c} {}
+ info vars
+ }
+ t1
+} {a}
test info-20.1 {miscellaneous error conditions} {
list [catch {info} msg] $msg