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
1...1..0 keeps Rakudo on 100% CPU usage #1783
Comments
From @bbkr[18:32] <bbkr> rakudo: say 1...1..0 # this one kills Rakudo, should it be |
From @bbkr$ perl6 -e 'say 1...()' Works on kiev build, need some tests. |
The RT System itself - Status changed from 'new' to 'open' |
From @bbkrtests added in t/spec/S03-operators/series.t |
@bbkr - 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 d185f82791a7301e389dc8c6df9754c8a937f808 t[t/spec] tests for RT #75316 1...1..0 keeps Rakudo on 100% CPU usage Inline Patchdiff --git a/t/spec/S03-operators/series.t b/t/spec/S03-operators/series.t
index 8b18c8e..df19d2c 100644
--- a/t/spec/S03-operators/series.t
+++ b/t/spec/S03-operators/series.t
@@ -143,6 +143,10 @@ is (1, -1, 1 ... -2), Nil, 'empty alternating series (2)';
# RT #75698
ok ?(one((-5 ... ^5).flat) == 0), '-5 ... ^5 produces just one zero';
+# RT #75316
+isa_ok (1...()), Failure,
+ 'empty list on right side of series operator does not cause infinite loop';
+
done_testing;
# vim: ft=perl6 |
From @usev6The test for this ticket (which now resides in S03-sequence/basic.t) was fudged for rakudo (todo 'mysterious'). AFAIU the code { 1 ... () } now throws an exception (just like shifting one element from an empty list does). Therefore I changed the test (and unfudged it): throws_like { 1 ... () }, The pull request for roast is here: Raku/roast#46 |
1 similar comment
From @usev6The test for this ticket (which now resides in S03-sequence/basic.t) was fudged for rakudo (todo 'mysterious'). AFAIU the code { 1 ... () } now throws an exception (just like shifting one element from an empty list does). Therefore I changed the test (and unfudged it): throws_like { 1 ... () }, The pull request for roast is here: Raku/roast#46 |
Migrated from rt.perl.org#75316 (status was 'resolved')
Searchable as RT75316$
The text was updated successfully, but these errors were encountered: