summaryrefslogtreecommitdiffstats
path: root/tests/append.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-30 13:27:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-30 13:27:52 (GMT)
commit076a7e2839881c03d0a98a8fc50823aef42ad79a (patch)
tree26698b0ef5c437526bbf0b1f88222dd4a0275d2a /tests/append.test
parent9efaa4d7f1aeb58c52fe41c62713b568a0833948 (diff)
downloadtcl-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/append.test')
-rw-r--r--tests/append.test4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/append.test b/tests/append.test
index ef4a194..0b06c8f 100644
--- a/tests/append.test
+++ b/tests/append.test
@@ -32,7 +32,7 @@ test append-1.3 {append command} {
test append-2.1 {long appends} {
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"
@@ -158,7 +158,7 @@ test append-5.1 {long lappends} -setup {
if {$l != $size} {
return "length mismatch: should have been $size, was $l"
}
- for {set i 0} {$i < $size} {set i [expr $i+1]} {
+ for {set i 0} {$i < $size} {incr i} {
set j [lindex $var $i]
if {$j ne "item $i"} {
return "element $i should have been \"item $i\", was \"$j\""