Permalink
Browse files

Fixed a bug with LAST

  • Loading branch information...
1 parent 7340c1b commit 941ae67a8578af352d54daba020d996ec7cbaaba @ingydotnet committed Jul 12, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/TestML/Runner.pm
View
@@ -46,7 +46,6 @@ method select_blocks ($points) {
for @($.doc.data.blocks) -> $block {
my %points = $block.points;
next if %points.exists('SKIP');
- last if %points.exists('LAST');
my $next = 0;
for @($points) -> $point {
$next = 1 unless %points.exists($point);
@@ -57,6 +56,7 @@ method select_blocks ($points) {
last;
}
@selected.push($block);
+ last if %points.exists('LAST');
}
return @selected;
}

0 comments on commit 941ae67

Please sign in to comment.