diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | tests/var.test | 5 |
2 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2000-11-17 Donal K. Fellows <fellowsd@cs.man.ac.uk> + + * 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 <a.kupries@westend.com> * 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} |