From ca9a991ea487b51b3fdc3d98b2f033ebb68053f7 Mon Sep 17 00:00:00 2001 From: dkf Date: Fri, 17 Nov 2000 09:55:42 +0000 Subject: Added test for bug 119192 to test suite. --- ChangeLog | 6 ++++++ tests/var.test | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 51a8df9..7b6e64f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-11-17 Donal K. Fellows + + * tests/var.test: (test var-1.19) If my attempts to fix the + problem aren't right yet, my attempts to describe it look pretty + good to me... + 2000-11-16 Andreas Kupries * win/tclWinPort.h (line 69): Changed reference to winsock2.h into 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} -- cgit v0.12