summaryrefslogtreecommitdiffstats
path: root/tests/dict.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dict.test')
-rw-r--r--tests/dict.test9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/dict.test b/tests/dict.test
index 090142e..1733424 100644
--- a/tests/dict.test
+++ b/tests/dict.test
@@ -9,7 +9,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: dict.test,v 1.13 2005/07/21 21:49:08 dkf Exp $
+# RCS: @(#) $Id: dict.test,v 1.14 2005/10/08 14:42:54 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -317,6 +317,13 @@ test dict-11.16 {dict incr command: compilation} {
}
dicttest
} {1 1 2 3}
+test dict-11.17 {dict incr command: compilation} {
+ proc dicttest {} {
+ set dictv {a 1}
+ dict incr dictv a 2
+ }
+ dicttest
+} {a 3}
test dict-12.1 {dict lappend command} {
set dictv {a a}