diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2010-10-02 12:38:30 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2010-10-02 12:38:30 (GMT) |
commit | 5e88dcc48d62ffa8d6a6cb309bf9640936629494 (patch) | |
tree | a96831b22af8d5eee864bf40d387dc9ad3729941 /tests/dict.test | |
parent | 1186f701edb58e2b02cd55a8ba71a3bbc00032d8 (diff) | |
download | tcl-5e88dcc48d62ffa8d6a6cb309bf9640936629494.zip tcl-5e88dcc48d62ffa8d6a6cb309bf9640936629494.tar.gz tcl-5e88dcc48d62ffa8d6a6cb309bf9640936629494.tar.bz2 |
* generic/tclExecute.c (TEBCresume): [Bug 3079830]: Added invalidation
of string representations of dictionaries in some cases.
Diffstat (limited to 'tests/dict.test')
-rw-r--r-- | tests/dict.test | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/dict.test b/tests/dict.test index c7d186d..14e2fad 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.37 2010/05/20 08:37:09 ferrieux Exp $ +# RCS: @(#) $Id: dict.test,v 1.38 2010/10/02 12:38:30 dkf Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -426,6 +426,9 @@ test dict-12.10 {dict lappend command: write failure} -setup { } -returnCodes error -cleanup { unset dictVar } -result {can't set "dictVar": variable is array} +test dict-12.11 {compiled dict append: invalidate string rep - Bug 3079830} { + apply {{} {set d {a 1 b 2 c 3}; dict lappend d b 22}} +} {a 1 b {2 22} c 3} test dict-13.1 {dict append command} -body { set dictv {a a} @@ -487,6 +490,9 @@ test dict-13.9 {dict append command: write failure} -setup { test dict-13.10 {compiled dict append: crash case} { apply {{} {dict append dictVar a o k}} } {a ok} +test dict-13.11 {compiled dict append: invalidate string rep - Bug 3079830} { + apply {{} {set d {a 1 b 2 c 3}; dict append d b 22}} +} {a 1 b 222 c 3} test dict-14.1 {dict for command: syntax} -returnCodes error -body { dict for |