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
Bare 'i' not recognised as a Complex() #2012
Comments
From @tadzikWhen 'i' is not prefixed by a number it's not recognised as a Complex
i.WHAT is ok for the std evalbot on #perl6, but it's not for Rakudo. |
From @pmichaudNow fixed in b627e33. Assigning to moritz for spectest verification. Thanks! Pm |
The RT System itself - 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/complex.t commit 94aae584b085c473fd3ac16186612e010edd6fd7 [t/spec] test for RT #76994, bare i is the complex unit Inline Patchdiff --git a/t/spec/S32-num/complex.t b/t/spec/S32-num/complex.t
index 2523e8c..a8aa015 100644
--- a/t/spec/S32-num/complex.t
+++ b/t/spec/S32-num/complex.t
@@ -7,6 +7,8 @@ plan *;
# Basic tests functions specific to complex numbers.
isa_ok(1 + 2i, Complex, 'postfix:<i> creates a Complex number');
+isa_ok(i, Complex, 'i creates a Complex number');
+ok i == 1i, '1 == 1i';
is_approx((2i)i, -2, 'postfix:<i> works on an imaginary number');
is_approx((2i + 3)i, -2 + 3i, 'postfix:<i> works on a Complex number'); |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#76994 (status was 'resolved')
Searchable as RT76994$
The text was updated successfully, but these errors were encountered: