Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added tests for ()i and \i forms of Complex numbers.

  • Loading branch information...
commit 81b8c360fb527065851f30cc992ca3abfd4ee47f 1 parent 059465d
lue authored September 05, 2010

Showing 1 changed file with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 5  S32-num/complex.t
5  S32-num/complex.t
@@ -2,7 +2,7 @@ use v6;
2 2
 
3 3
 use Test;
4 4
 
5  
-plan 477;
  5
+plan 479;
6 6
 
7 7
 # Basic tests functions specific to complex numbers.
8 8
 
@@ -10,6 +10,9 @@ isa_ok(1 + 2i, Complex, 'postfix:<i> creates a Complex number');
10 10
 isa_ok(i, Complex, 'i creates a Complex number');
11 11
 ok i == 1i, 'i == 1i';
12 12
 
  13
+isa_ok((3)i, Complex, '($n)i form creates a Complex number');
  14
+isa_ok(3\i, Complex, '$n\i form creates a Complex number');
  15
+
13 16
 is_approx((2i)i, -2, 'postfix:<i> works on an imaginary number');
14 17
 is_approx((2i + 3)i, -2 + 3i, 'postfix:<i> works on a Complex number');
15 18
 

0 notes on commit 81b8c36

Please sign in to comment.
Something went wrong with that request. Please try again.