diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-10-30 13:27:52 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-10-30 13:27:52 (GMT) |
commit | 076a7e2839881c03d0a98a8fc50823aef42ad79a (patch) | |
tree | 26698b0ef5c437526bbf0b1f88222dd4a0275d2a /tests/appendComp.test | |
parent | 9efaa4d7f1aeb58c52fe41c62713b568a0833948 (diff) | |
download | tcl-076a7e2839881c03d0a98a8fc50823aef42ad79a.zip tcl-076a7e2839881c03d0a98a8fc50823aef42ad79a.tar.gz tcl-076a7e2839881c03d0a98a8fc50823aef42ad79a.tar.bz2 |
Add "{}" around many "expr" commands in testcases. Also in doc/expr.n
Diffstat (limited to 'tests/appendComp.test')
-rw-r--r-- | tests/appendComp.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/appendComp.test b/tests/appendComp.test index 66941a9..a6e78d2 100644 --- a/tests/appendComp.test +++ b/tests/appendComp.test @@ -41,7 +41,7 @@ test appendComp-1.3 {append command} { test appendComp-2.1 {long appends} { proc foo {} { set x "" - for {set i 0} {$i < 1000} {set i [expr $i+1]} { + for {set i 0} {$i < 1000} {incr i} { append x "foobar " } set y "foobar" @@ -223,7 +223,7 @@ test appendComp-5.1 {long lappends} -setup { } } -body { set x "" - for {set i 0} {$i < 300} {set i [expr $i+1]} { + for {set i 0} {$i < 300} {incr i} { lappend x "item $i" } check $x 300 |