Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

comparison with < of complex numbers dies (RT #104660)

  • Loading branch information...
commit 04c02810fa588f79ac92c83255c6f6f9245f397a 1 parent b67998f
@moritz moritz authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 S32-num/complex.t
View
4 S32-num/complex.t
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 481;
+plan 482;
# Basic tests functions specific to complex numbers.
@@ -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');
Please sign in to comment.
Something went wrong with that request. Please try again.