summaryrefslogtreecommitdiffstats
path: root/tests/incr.test
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>1999-10-29 03:04:36 (GMT)
committerhobbs <hobbs@noemail.net>1999-10-29 03:04:36 (GMT)
commitca5b7b89fa94bedcd6681c3c969c3ae19d2fe0da (patch)
tree6929d9fd391e216fcd9d1b0da40f6f27b338096d /tests/incr.test
parentd837ba0595f3f8ec5a276bb494fd3f03027d0860 (diff)
downloadtcl-ca5b7b89fa94bedcd6681c3c969c3ae19d2fe0da.zip
tcl-ca5b7b89fa94bedcd6681c3c969c3ae19d2fe0da.tar.gz
tcl-ca5b7b89fa94bedcd6681c3c969c3ae19d2fe0da.tar.bz2
added tests for related fixes
FossilOrigin-Name: 19dabe4e595ae859a736d47968514ca495bbe872
Diffstat (limited to 'tests/incr.test')
-rw-r--r--tests/incr.test8
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.