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
<<->> returns Bool::False rather than a list of subtraction results in Rakudo #2158
Comments
From @masak<LoRe> rakudo: print ([1..3] <<->> [1..3]).perl |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in S03-metaops/hyper.t commit 71fdf1d837b6869d9826d6f4d058678eb62c668a [hyper.t] Added tests for RT #77800. Inline Patchdiff --git a/S03-metaops/hyper.t b/S03-metaops/hyper.t
index fbfc5bd..b9a2780 100644
--- a/S03-metaops/hyper.t
+++ b/S03-metaops/hyper.t
@@ -8,7 +8,7 @@ use Test;
=end pod
-plan 265;
+plan 269;
# L<S03/Hyper operators>
# binary infix
@@ -717,7 +717,16 @@ my @e;
# RT #74530
{
- is ~(-<<(1..3)), '-1 -2 -3', 'ranges and hyper ops mix';;
+ is ~(-<<(1..3)), '-1 -2 -3', 'ranges and hyper ops mix';
+}
+
+# RT #77800
+# Parsing hyper-subtraction
+{
+ is ((9, 8) <<-<< (1, 2, 3, 4)), (8, 6, 6, 4), '<<-<<';
+ is ((9, 8, 10, 12) >>->> (1, 2)), (8, 6, 9, 10), '>>->>';
+ is ((9, 8) >>-<< (1, 2)), (8, 6), '>>-<<';
+ is ((9, 8) <<->> (1, 2, 5)), (8, 6, 4), '<<->>';
}
done_testing; |
The RT System itself - Status changed from 'new' to 'open' |
From @KodiologistFixed in fb57ef1. The culprit was an assertion in Grammar.pm that was |
@Kodiologist - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#77800 (status was 'resolved')
Searchable as RT77800$
The text was updated successfully, but these errors were encountered: