diff options
author | gahr <gahr@gahr.ch> | 2016-06-10 12:10:41 (GMT) |
---|---|---|
committer | gahr <gahr@gahr.ch> | 2016-06-10 12:10:41 (GMT) |
commit | ed326ae9b57394d1756cebbb0bbe5c828fede4cd (patch) | |
tree | d77bcc9fb09de474104b1fc59dde7cc6c20b4031 /tests/proc.test | |
parent | 99ac77fd22446858dd46523bd9ba60d268968407 (diff) | |
parent | c0e9c99a1c2810ae4214e3a98aac7013c1417a53 (diff) | |
download | tcl-ed326ae9b57394d1756cebbb0bbe5c828fede4cd.zip tcl-ed326ae9b57394d1756cebbb0bbe5c828fede4cd.tar.gz tcl-ed326ae9b57394d1756cebbb0bbe5c828fede4cd.tar.bz2 |
Merge trunk
Diffstat (limited to 'tests/proc.test')
-rw-r--r-- | tests/proc.test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/proc.test b/tests/proc.test index e06720e..bae5e15 100644 --- a/tests/proc.test +++ b/tests/proc.test @@ -99,7 +99,7 @@ test proc-1.6 {Tcl_ProcObjCmd, namespace code ignores single ":"s in middle or e test proc-1.7 {Tcl_ProcObjCmd, check that formal parameter names are not array elements} -setup { catch {rename p ""} } -returnCodes error -body { - proc p {a(1) a(2)} { + proc p {a(1) a(2)} { set z [expr $a(1)+$a(2)] puts "$z=z, $a(1)=$a(1)" } @@ -107,7 +107,7 @@ test proc-1.7 {Tcl_ProcObjCmd, check that formal parameter names are not array e test proc-1.8 {Tcl_ProcObjCmd, check that formal parameter names are simple names} -setup { catch {rename p ""} } -body { - proc p {b:a b::a} { + proc p {b:a b::a} { } } -returnCodes error -result {formal parameter "b::a" is not a simple name} @@ -329,7 +329,7 @@ test proc-5.1 {Bytecompiling noop; test for correct argument substitution} -body } -cleanup { catch {rename p ""} catch {rename t ""} -} -result {aba} +} -result {aba} test proc-6.1 {ProcessProcResultCode: Bug 647307 (negative return code)} -body { proc a {} {return -code -5} |