Skip to content

Commit

Permalink
comparison with < of complex numbers dies (RT #104660)
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Nov 27, 2011
1 parent b67998f commit 04c0281
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion S32-num/complex.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 481;
plan 482;

# Basic tests functions specific to complex numbers.

Expand All @@ -17,6 +17,8 @@ isa_ok(3\i, Complex, '$n\i form creates a Complex number');
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');

dies_ok { (2 + 3i) > (2 + 2i) }, '> comparison of complex numbers dies';

#?rakudo 3 skip 'i'
is_approx(i, 1i, 'standalone i works to generate a Complex number');
is_approx(1 - i, 1 - 1i, 'standalone i works to generate a Complex number');
Expand Down

0 comments on commit 04c0281

Please sign in to comment.