diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2001-08-10 13:10:13 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2001-08-10 13:10:13 (GMT) |
commit | e3e4bcea9c4105e94029baa9f8c5ddad79fdc692 (patch) | |
tree | c9e4138fcbb2e69dcb5e9e7dcf03f049e2cca084 /tests | |
parent | a824d7b8087eb9e6024ad460b982386fe419faea (diff) | |
download | tcl-e3e4bcea9c4105e94029baa9f8c5ddad79fdc692.zip tcl-e3e4bcea9c4105e94029baa9f8c5ddad79fdc692.tar.gz tcl-e3e4bcea9c4105e94029baa9f8c5ddad79fdc692.tar.bz2 |
insure that [array] traces work for undefined vars [bug: 449094]
Diffstat (limited to 'tests')
-rw-r--r-- | tests/trace.test | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/trace.test b/tests/trace.test index 66ec08f..102850a 100644 --- a/tests/trace.test +++ b/tests/trace.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: trace.test,v 1.9 2000/08/25 20:39:32 ericm Exp $ +# RCS: @(#) $Id: trace.test,v 1.10 2001/08/10 13:10:13 msofer Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -336,6 +336,11 @@ test trace-5.7 {array traces fire for undefined variables} { array set x {a 1} set ::info } {x {} array} +test trace-5.8 {array traces fire for undefined variables} { + catch {unset x} + trace add variable x array {set x(foo) 1 ;#} + set res "names: [array names x]" +} {names: foo} # Trace multiple trace types at once. |