Skip to content

Commit

Permalink
Prefer version without is_run
Browse files Browse the repository at this point in the history
  • Loading branch information
ab5tract committed May 21, 2024
1 parent 4b96246 commit 83905d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions S03-sequence/misc.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use Test;
use lib $?FILE.IO.parent(2).add("packages/Test-Helpers");
use Test::Util;
plan 33;

is ("fom" ... /foo/), "fom fon foo", "can use regex for endpoint without it being confused for closure";
Expand Down Expand Up @@ -140,7 +138,9 @@ is-deeply (<a b c>, *.reverse ... *)[5], <c b a>.Seq,
# RakuAST
# https://github.com/rakudo/rakudo/issues/5520
{
is_run 'Q| .say for 1...5...3 |.AST.EVAL', { :out("1\n2\n3\n4\n5\n4\n3\n") }, ".say works with chained sequence and for";
my @result;
Q| @result.push($_) for 1...5...3 |.AST.EVAL;
is-deeply @result, [1, 2, 3, 4, 5, 4, 3], ".say works with chained sequence and for";
}

# vim: expandtab shiftwidth=4

0 comments on commit 83905d2

Please sign in to comment.