Skip to content

Commit

Permalink
Use eval_dies-ok because Niecza catches comparison errors at compile …
Browse files Browse the repository at this point in the history
…time.
  • Loading branch information
colomon committed Feb 5, 2012
1 parent 428e7b0 commit 902702c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions S32-num/complex.t
Expand Up @@ -17,7 +17,7 @@ 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';
eval_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');
Expand Down Expand Up @@ -141,8 +141,8 @@ is_approx e.log(1i), -2i / pi, "log e base i == -2i / pi";
is (5-4i).conj, 5+4i, 'conj 5-4i -> 5+4i';
}

dies_ok { (1 + 2i) < (2 + 4i) },
'Cannot arithmetically compare Complex numbers';
eval_dies_ok "(1 + 2i) < (2 + 4i)", 'Cannot arithmetically compare Complex numbers';

done;

# vim: ft=perl6

0 comments on commit 902702c

Please sign in to comment.