Skip to content

Commit

Permalink
adjust test to One Arg Rule™
Browse files Browse the repository at this point in the history
  • Loading branch information
FROGGS committed Aug 29, 2015
1 parent 9d89274 commit e72a073
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S04-statements/for_with_only_one_item.t
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ plan 12;
my $count=0;
for ($arrayref) { $count++ }

is $count, 1, 'for ($arrayref) {...} executes the loop body only once';
is $count, 3, 'for ($arrayref) {...} executes the loop body three times (one arg rule)';
}

{
Expand All @@ -72,7 +72,7 @@ plan 12;
my $count=0;
for $arrayref { $count++ }

is $count, 1, 'for $arrayref {...} executes the loop body only once';
is $count, 3, 'for $arrayref {...} executes the loop body three times (one arg rule)';
}

# for with only one item, is rw
Expand Down

0 comments on commit e72a073

Please sign in to comment.