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
Implement .Rat in Rat in Rakudo #1442
Comments
From @masak<masak> rakudo: (11/10).Rat |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S32-num/rat.t commit bd03a1f10d092b98deab3e0643dd54227cf3aef9 [t/spec] tests for RT #71364, and that === works on Rats Inline Patchdiff --git a/t/spec/S32-num/rat.t b/t/spec/S32-num/rat.t
index 7a82b90..ac8f193 100644
--- a/t/spec/S32-num/rat.t
+++ b/t/spec/S32-num/rat.t
@@ -200,6 +200,13 @@ isa_ok (424/61731) * (61731/61733), Rat, "424/61731 * 61731/61733 is a Rat";
is_approx (424/61731) / (61733/61731), (424.Num / 61731.Num) / (61733.Num / 61731.Num), "424/61731 / 61733/61731 works";
isa_ok (424/61731) / (61733/61731), Rat, "424/61731 / 61733/61731 is a Rat";
+ok (1/2) == (1/2).Rat, 'Rat.Rat works';
+isa_ok (1/2).Rat, '... and actually returns a Rat';
+
+#?rakudo todo '=== on Rats'
+ok 1/2 === 1/2, 'Rats are value types, so 1/2 === 1/2';
+ok 1/2 !=== 1/3, '=== with false outcome';
+
done_testing;
# vim: ft=perl6 |
The RT System itself - Status changed from 'new' to 'open' |
From @moritzNow works, test passes |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#71364 (status was 'resolved')
Searchable as RT71364$
The text was updated successfully, but these errors were encountered: