summaryrefslogtreecommitdiffstats
path: root/tests/proc-old.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/proc-old.test')
-rw-r--r--tests/proc-old.test18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/proc-old.test b/tests/proc-old.test
index 79ee1fa..ab93fca 100644
--- a/tests/proc-old.test
+++ b/tests/proc-old.test
@@ -7,9 +7,9 @@
# Sourcing this file into Tcl runs the tests and generates output for
# errors. No output means no errors were found.
#
-# Copyright (c) 1991-1993 The Regents of the University of California.
-# Copyright (c) 1994-1997 Sun Microsystems, Inc.
-# Copyright (c) 1998-1999 by Scriptics Corporation.
+# Copyright © 1991-1993 The Regents of the University of California.
+# Copyright © 1994-1997 Sun Microsystems, Inc.
+# Copyright © 1998-1999 Scriptics Corporation.
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
@@ -25,7 +25,7 @@ catch {rename foo ""}
proc tproc {} {return a; return b}
test proc-old-1.1 {simple procedure call and return} {tproc} a
proc tproc x {
- set x [expr $x+1]
+ set x [expr {$x + 1}]
return $x
}
test proc-old-1.2 {simple procedure call and return} {tproc 2} 3
@@ -49,7 +49,7 @@ test proc-old-1.6 {simple procedure call and return (shared proc body string)} {
test proc-old-2.1 {local and global variables} {
proc tproc x {
- set x [expr $x+1]
+ set x [expr {$x + 1}]
return $x
}
set x 42
@@ -57,7 +57,7 @@ test proc-old-2.1 {local and global variables} {
} {7 42}
test proc-old-2.2 {local and global variables} {
proc tproc x {
- set y [expr $x+1]
+ set y [expr {$x + 1}]
return $y
}
set y 18
@@ -66,7 +66,7 @@ test proc-old-2.2 {local and global variables} {
test proc-old-2.3 {local and global variables} {
proc tproc x {
global y
- set y [expr $x+1]
+ set y [expr {$x + 1}]
return $y
}
set y 189
@@ -75,7 +75,7 @@ test proc-old-2.3 {local and global variables} {
test proc-old-2.4 {local and global variables} {
proc tproc x {
global y
- return [expr $x+$y]
+ return [expr {$x + $y}]
}
set y 189
list [tproc 6] $y
@@ -504,7 +504,7 @@ test proc-old-10.1 {ByteCode epoch change during recursive proc execution} {
set y 20
rename expr expr.old
rename expr.old expr
- if $x then {t1 0} ;# recursive call after foo's code is invalidated
+ if {$x} then {t1 0} ;# recursive call after foo's code is invalidated
return 20
}
t1 1