diff options
author | hobbs <hobbs> | 1999-10-29 03:04:37 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 1999-10-29 03:04:37 (GMT) |
commit | 7f43d8ecc232061ad27b2752e0d2e6e2f48a2bdd (patch) | |
tree | 6929d9fd391e216fcd9d1b0da40f6f27b338096d /tests/incr.test | |
parent | da3760e58b15f3d2c22dad2f2c5ea0e6bfca0792 (diff) | |
download | tcl-7f43d8ecc232061ad27b2752e0d2e6e2f48a2bdd.zip tcl-7f43d8ecc232061ad27b2752e0d2e6e2f48a2bdd.tar.gz tcl-7f43d8ecc232061ad27b2752e0d2e6e2f48a2bdd.tar.bz2 |
added tests for related fixes
Diffstat (limited to 'tests/incr.test')
-rw-r--r-- | tests/incr.test | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/incr.test b/tests/incr.test index 533b002..046e9ad 100644 --- a/tests/incr.test +++ b/tests/incr.test @@ -10,7 +10,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: incr.test,v 1.4 1999/06/26 03:54:14 jenn Exp $ +# RCS: @(#) $Id: incr.test,v 1.5 1999/10/29 03:04:37 hobbs Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -239,6 +239,12 @@ test incr-1.29 {TclCompileIncrCmd: runtime error, bad variable value} { set x " - " list [catch {incr x 1} msg] $msg } {1 {expected integer but got " - "}} + +test incr-1.30 {TclCompileIncrCmd: array var, braced (no subs)} { + catch {unset array} + set array(\$foo) 4 + incr {array($foo)} +} 5 # Check "incr" and computed command names. |