aboutsummaryrefslogtreecommitdiff
path: root/tests/misc.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc.test')
-rw-r--r--tests/misc.test8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/misc.test b/tests/misc.test
index cffb0a6..ac6fb75 100644
--- a/tests/misc.test
+++ b/tests/misc.test
@@ -579,8 +579,10 @@ test eval-list-1.1 {Lost string rep with list} {
test info-statics-1.1 {info statics commands} {
set x 1
- proc a {} {x {y 2}} {}
- lsort [info statics a]
-} {1 2 x y}
+ proc a {} {x {y 2}} { incr x; incr y}
+ a
+ # Returns the dict of the current static variables
+ info statics a
+} {x 2 y 3}
testreport