diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2001-09-04 22:45:52 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2001-09-04 22:45:52 (GMT) |
commit | 3cb4a6379d2d1327bbe201c9ef0733e6fd980134 (patch) | |
tree | 90b715ced160ef0200a6451efb6a332175827cab /tests/proc.test | |
parent | 6fca271a5115b8b8e94f10dce8efb41fcedb53a9 (diff) | |
download | tcl-3cb4a6379d2d1327bbe201c9ef0733e6fd980134.zip tcl-3cb4a6379d2d1327bbe201c9ef0733e6fd980134.tar.gz tcl-3cb4a6379d2d1327bbe201c9ef0733e6fd980134.tar.bz2 |
made [proc] check that formal args have simple names [Bug: 458548]
Diffstat (limited to 'tests/proc.test')
-rw-r--r-- | tests/proc.test | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/proc.test b/tests/proc.test index a96373a..8f21817 100644 --- a/tests/proc.test +++ b/tests/proc.test @@ -13,7 +13,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: proc.test,v 1.8 2000/05/03 00:14:36 hobbs Exp $ +# RCS: @(#) $Id: proc.test,v 1.9 2001/09/04 22:45:52 msofer Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -96,6 +96,11 @@ test proc-1.7 {Tcl_ProcObjCmd, check that formal parameter names are not array e puts "$z=z, $a(1)=$a(1)" }} msg] $msg } {1 {procedure "p" has formal parameter "a(1)" that is an array element}} +test proc-1.8 {Tcl_ProcObjCmd, check that formal parameter names are simple names} { + catch {rename p ""} + list [catch {proc p {b:a b::a} { + }} msg] $msg +} {1 {procedure "p" has formal parameter "b::a" that is not a simple name}} test proc-2.1 {TclFindProc, simple proc name and proc not in namespace} { catch {eval namespace delete [namespace children :: test_ns_*]} |