1 source [file dirname [info script]]/testing.tcl
3 # Check "loop" and its use of continue and break.
7 test loop-1.1 {loop tests} {
15 test loop-1.2 {loop tests} {
24 test loop-1.3 {loop tests} {
33 test loop-1.5 {loop errors} {
34 catch {loop 1 2 3} msg
37 test loop-1.6 {loop errors} {
38 catch {loop 1 2 3 4 5} msg
41 test loop-1.7 {loop tests} {
48 test loop-1.8 {error in loop} {
61 test loop-1.9 {loop incr} {
69 test loop-1.10 {no exec infinite loop} {
78 test loop-2.1 {loop shimmering tests} {
84 test loop-2.2 {loop shimmering tests} {
85 # Setting the variable inside the loop doesn't
86 # affect the loop or the final variable value
93 test loop-2.3 {loop shimmering tests} {
101 } {1 blah 2 blah 3 blah 4 blah 5 blah}
103 test loop-2.4 {loop shimmering tests} {
110 test loop-2.5 {loop shimmering tests} {
111 # Ensure that the string rep of $i is updated
118 test loop-2.6 {modify loop var} {
122 # this makes it impossible to set the loop var
128 test loop-2.7 {unset loop var} {
131 # var will simply get recreated on each loop
137 test loop-2.8 {modify loop var} {