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
Can't use a Rat to index an array in Rakudo #1358
Comments
From @masak<masak> rakudo: my @a = <a b c>; say @a[4/3] |
From @moritzOn Mon Oct 12 18:29:49 2009, masak wrote:
Fixed in 609cc25ae44e9b19a9e505796444fb42e645b703, now just needs a test. Cheers, |
@moritz - Status changed from 'new' to 'open' |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S32-num/rat.t commit 44b611429edf1c19d0bcdafa4abe28ffc16a9afc [t/spec] test for RT #69738: array indexing with Rats Inline Patchdiff --git a/t/spec/S32-num/rat.t b/t/spec/S32-num/rat.t
index b67ac25..e92d95f 100644
--- a/t/spec/S32-num/rat.t
+++ b/t/spec/S32-num/rat.t
@@ -156,6 +156,9 @@ is( exp(1).Rat(1e-4), Rat.new(193, 71), "Num to Rat with epsilon 1e-4");
is( exp(1).Rat(Rat.new(1,1e4.Int)), Rat.new(193, 71),
"Num to Rat with epsilon of Rat");
+is (5/4).Int, 1, 'Rat.Int';
+is <a b c>.[4/3], 'b', 'Indexing an array with a Rat (RT #69738)';
+
done_testing;
# vim: ft=perl6 |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#69738 (status was 'resolved')
Searchable as RT69738$
The text was updated successfully, but these errors were encountered: