New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No result object after a successful match against Perl6::Grammar in Rakudo #918
Comments
From @masak<Tene> rakudo: 'say 1' ~~ /<Perl6::Grammar::TOP>/; say $/.perl; |
From @masak<masak> rakudo: say ?("say <OH HAI>" ~~ /<Perl6::Grammar::TOP>/); say $/.perl |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S05-match/perl.t commit 4d2fe0287307fdeb8318896610f074fafc4dd9ea [t/spec] Tests for RT #64874 Inline Patchdiff --git a/t/spec/S05-match/perl.t b/t/spec/S05-match/perl.t
index 5f62299..6f96d0d 100644
--- a/t/spec/S05-match/perl.t
+++ b/t/spec/S05-match/perl.t
@@ -1,6 +1,6 @@
use v6;
use Test;
-plan 6;
+plan 11;
# tests for Match.perl
@@ -25,5 +25,18 @@ regex o { o };
ok "foo" ~~ /<f> <o>+ /, 'Regex matches (2)';
lives_ok { $/.perl }, 'lives on quantified named captures';
+# RT #64874
+{
+ my $code_str = 'say <OH HAI>';
+ $code_str ~~ /<Perl6::Grammar::TOP>/;
+
+ isa_ok $/, Match;
+ is $/.ast, $code_str, 'Match.ast is the code matched';
+ is $/.Str, $code_str, 'Match.Str is the code matched';
+ #?rakudo todo 'RT #64874'
+ lives_ok { $/.perl }, 'can Match.perl';
+ #?rakudo skip 'RT #64874'
+ is_deeply eval($/.perl), $/, 'eval of Match.perl recreates Match';
+}
# vim: ft=perl6 |
The RT System itself - Status changed from 'new' to 'open' |
From @bbkrOn Pisa build: [14:55] <bbkr> rakudo: 'say 1' ~~ /<Perl6::Grammar::TOP>/; say $/.perl; |
From @moritzPerl6::Grammar now isn't visible in user-space code anymore, so the |
@moritz - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#64874 (status was 'rejected')
Searchable as RT64874$
The text was updated successfully, but these errors were encountered: