summaryrefslogtreecommitdiffstats
path: root/tests/set.test
diff options
context:
space:
mode:
authorhobbs <hobbs>1999-10-29 03:04:37 (GMT)
committerhobbs <hobbs>1999-10-29 03:04:37 (GMT)
commit7f43d8ecc232061ad27b2752e0d2e6e2f48a2bdd (patch)
tree6929d9fd391e216fcd9d1b0da40f6f27b338096d /tests/set.test
parentda3760e58b15f3d2c22dad2f2c5ea0e6bfca0792 (diff)
downloadtcl-7f43d8ecc232061ad27b2752e0d2e6e2f48a2bdd.zip
tcl-7f43d8ecc232061ad27b2752e0d2e6e2f48a2bdd.tar.gz
tcl-7f43d8ecc232061ad27b2752e0d2e6e2f48a2bdd.tar.bz2
added tests for related fixes
Diffstat (limited to 'tests/set.test')
-rw-r--r--tests/set.test20
1 files changed, 7 insertions, 13 deletions
diff --git a/tests/set.test b/tests/set.test
index 736e0e5..522b2a9 100644
--- a/tests/set.test
+++ b/tests/set.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: set.test,v 1.5 1999/06/26 20:55:12 rjohnson Exp $
+# RCS: @(#) $Id: set.test,v 1.6 1999/10/29 03:04:37 hobbs Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -200,6 +200,12 @@ test set-1.24 {TclCompileSetCmd: too many arguments} {
set msg
} {wrong # args: should be "set varName ?newValue?"}
+test set-1.25 {TclCompileSetCmd: var is array, braced (no subs)} {
+ # This was a known error in 8.1a* - 8.2.1
+ catch {unset array}
+ set {array($foo)} 5
+} 5
+
test set-2.1 {set command: runtime error, bad variable name} {
list [catch {set {"foo}} msg] $msg $errorInfo
} {1 {can't read ""foo": no such variable} {can't read ""foo": no such variable
@@ -486,15 +492,3 @@ catch {unset x}
catch {unset z}
::tcltest::cleanupTests
return
-
-
-
-
-
-
-
-
-
-
-
-