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
Double zero when infix:<...> proceeds from -5 to ^5 #1830
Comments
From @masak<masak> rakudo: say (-5 ... ^5).perl So it's the prefix:<^> that does it. The infix:<...> operator probably |
From @pmichaudThis appears to be working in current master trunk; assigning to Pm |
@pmichaud - Status changed from 'new' to 'resolved' |
@pmichaud - Status changed from 'resolved' to 'open' |
@moritz - Status changed from 'open' to 'resolved' |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S03-operators/series.t commit b0f602506f06761e471735595b380b601c30178a [t/spec] test for RT #75698, -5 ... ^5 should contain only one 0 Inline Patchdiff --git a/t/spec/S03-operators/series.t b/t/spec/S03-operators/series.t
index 000a487..0e09041 100644
--- a/t/spec/S03-operators/series.t
+++ b/t/spec/S03-operators/series.t
@@ -138,6 +138,10 @@ is (1, -1, 1 ... -2), Nil, 'empty alternating series (2)';
is ~(1 ...^ 0), '1', 'singleton exclusive series';
}
+
+# RT #75698
+ok ?(one((-5 ... ^5).flat) == 0), '-5 ... ^5 produces just one zero';
+
done_testing;
# vim: ft=perl6 |
Migrated from rt.perl.org#75698 (status was 'resolved')
Searchable as RT75698$
The text was updated successfully, but these errors were encountered: