Skip to content

Commit

Permalink
Add the first 'Fixed in RakuAST' tests
Browse files Browse the repository at this point in the history
In order to prevent regressions, we will be accumulating
test cases for issues that remain open but which have been
confirmed working with RakuAST.

First up: R#5520 (#5520) and R#5546 (#5546).
  • Loading branch information
ab5tract committed May 21, 2024
1 parent cf87ccf commit 22a7a89
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions t/12-rakuast/fixed-in-rakuast.rakutest
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
use Test;
use lib <t/packages/Test-Helpers>;
use Test::Helpers;

plan 2;

# S03-sequence/misc.t
# https://github.com/rakudo/rakudo/issues/5520
{
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";
}

# ???
# https://github.com/rakudo/rakudo/issues/5546
{
is-run 'Q| use trace; my %a{Str} |.AST.EVAL', :err("2 (EVAL_0 line 1)\nmy \%a\{Str} \n"),
"trace pragma works with hash shapes";
}

0 comments on commit 22a7a89

Please sign in to comment.