Permalink
Browse files

Use eval_dies-ok because Niecza catches comparison errors at compile …

…time.
  • Loading branch information...
1 parent 428e7b0 commit 902702c2c18e62cc1b890c9b7224732871313fbf @colomon colomon committed Feb 5, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 S32-num/complex.t
View
@@ -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');
@@ -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.