Skip to content

Commit

Permalink
RakuAST: remove :EVAL from RakuAST tests
Browse files Browse the repository at this point in the history
As EVAL is no longer necessary to be able to correctly deparse or
provide a .raku representation.
  • Loading branch information
lizmat committed Mar 15, 2023
1 parent 588d0f6 commit cd21886
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions t/12-rakuast/signature.rakutest
Expand Up @@ -7,9 +7,8 @@ my $ast;
my $deparsed;
my $raku;
my @type = <AST Str Raku>;
sub ast(RakuAST::Node:D $node, :$EVAL --> Nil) {
sub ast(RakuAST::Node:D $node --> Nil) {
$ast := $node;
EVAL($ast) if $EVAL;
$deparsed := $node.DEPARSE;
$raku := 'use experimental :rakuast; ' ~ $node.raku;
diag $deparsed.chomp;
Expand Down Expand Up @@ -537,7 +536,7 @@ subtest 'Placeholder positional parameter' => {
)
)
)
), :EVAL; # XXX for some reason EVAL is needed for proper deparsing
);

is-deeply $deparsed, 'sub { $^pos }', 'deparse';

Expand Down Expand Up @@ -575,7 +574,7 @@ subtest 'Placeholder named parameter' => {
)
)
)
), :EVAL; # XXX for some reason EVAL is needed for proper deparsing
);

is-deeply $deparsed, 'sub { $:named }', 'deparse';

Expand Down

0 comments on commit cd21886

Please sign in to comment.