Permalink
Browse files

[t/spec] test for RT #76994, bare i is the complex unit

git-svn-id: http://svn.pugscode.org/pugs@31928 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent 3d4e049 commit 56930968920ffce8ea753048a9ddf90d04060352 moritz committed Aug 8, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 S32-num/complex.t
View
@@ -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');

0 comments on commit 5693096

Please sign in to comment.