summaryrefslogtreecommitdiffstats
path: root/tests/append.test
diff options
context:
space:
mode:
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\""