Skip to content

Commit

Permalink
Unskip a passing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Jun 27, 2010
1 parent dce4d6d commit 3b94cd7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions t/cmd_foreach.t
@@ -1,8 +1,8 @@
# Copyright (C) 2004-2008, The Parrot Foundation.

source lib/test_more.tcl
# 16, but 2 are skipped.
plan 14
# 16, but 1 is skipped.
plan 15

eval_is {foreach} \
{wrong # args: should be "foreach varList list ?varList list ...? command"} \
Expand All @@ -16,13 +16,11 @@ eval_is {foreach {} {a b c} {puts foo}} \
{foreach varlist is empty} \
{empty varList}

if 0 { # XXX drastic TODO
eval_is {
array set a {}
foreach a {1 2 3 4} {puts $a}
} {can't set "a": variable is array} \
{couldn't set loop variable}
}

unset -nocomplain a
is [foreach a {1 2 3 4} {set a}] {} {return value}
Expand Down

0 comments on commit 3b94cd7

Please sign in to comment.