#!../../parrot tcl.pbc

source lib/test_more.tcl
plan 2

eval_is {
 set result ""
 for {set a 0} {$a < 10} {incr a} {
   if {$a > 5} { continue }
   set result [append result $a]
 }
 list $a $result
} {10 012345} {continue from for}

eval_is {
 set result ""
 set a 0
 while {$a <= 10} {
   incr a
   if {$a < 5} { continue }
   set result [append result $a]
 }
 list $a $result
} {11 567891011} {continue from while}


#!../../parrot tcl.pbc

source lib/test_more.tcl
plan 3

eval_is {
 set result ""
 for {set a 0} {$a < 10} {incr a} {
   if {$a > 5} { continue }
   set result [append result $a]
 }
 list $a $result
} {10 012345} {continue from for}

eval_is {
 set result ""
 set a 0
 while {$a <= 10} {
   incr a
   if {$a < 5} { continue }
   set result [append result $a]
 }
 list $a $result
} {11 567891011} {continue from while}

eval_is {
  proc test {} {continue}
  test
} {invoked "continue" outside of a loop} \
  {continue outside of a loop}

Add a failing [continue] test
[tcl]: Add a failing [continue] test


git-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@14372 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
