summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2000-11-17 09:55:42 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2000-11-17 09:55:42 (GMT)
commitca9a991ea487b51b3fdc3d98b2f033ebb68053f7 (patch)
tree4d4f29c12ba042263e075e408e1a889c2ee0e343 /tests
parentc3a45c0cdf91876b57a4f6b18dfacdafcf2e4577 (diff)
downloadtcl-ca9a991ea487b51b3fdc3d98b2f033ebb68053f7.zip
tcl-ca9a991ea487b51b3fdc3d98b2f033ebb68053f7.tar.gz
tcl-ca9a991ea487b51b3fdc3d98b2f033ebb68053f7.tar.bz2
Added test for bug 119192 to test suite.
Diffstat (limited to 'tests')
-rw-r--r--tests/var.test5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/var.test b/tests/var.test
index fb378ae..faafd3b 100644
--- a/tests/var.test
+++ b/tests/var.test
@@ -14,7 +14,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: var.test,v 1.15 2000/04/10 17:19:06 ericm Exp $
+# RCS: @(#) $Id: var.test,v 1.16 2000/11/17 09:55:42 dkf Exp $
#
if {[lsearch [namespace children] ::tcltest] == -1} {
@@ -173,6 +173,9 @@ test var-1.18 {TclLookupVar, resurrect array element via upvar to deleted array:
set result
}
} {0 2 1 {can't set "foo": upvar refers to element in deleted array}}
+test var-1.19 {TclLookupVar, right error message when parsing variable name} {
+ list [catch {[format set] thisvar(doesntexist)} msg] $msg
+} {1 {can't read "thisvar(doesntexist)": no such variable}}
test var-2.1 {Tcl_LappendObjCmd, create var if new} {
catch {unset x}