This is an automatically generated mail to inform you that tests are now
available in t/spec/S32-num/complex.t
commit 94aae584b085c473fd3ac16186612e010edd6fd7
Author: moritz <mor...@c213334d-75ef-0310-aa23-eaa082d1ae64>
Date: Sun Aug 8 12:35:08 2010 +0000
[t/spec] test for RT #76994, bare i is the complex unit
git-svn-id: http://svn.pugscode.org/p...@31928
c213334d-75ef-0310-aa23-eaa082d1ae64
diff --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');