Browse files

Add test for 0 ** (2 + 0i).

  • Loading branch information...
1 parent 6fb1102 commit be7da474e01dc5b5cd9068b1d7b3b7044835481f @colomon colomon committed Dec 12, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 S32-num/complex.t
View
3 S32-num/complex.t
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 485;
+plan 486;
# Basic tests functions specific to complex numbers.
@@ -107,6 +107,7 @@ for @examples -> $z {
is_approx 0i ** 2, 0, "Complex 0 ** Int works";
is_approx 0i ** 2.5, 0, "Complex 0 ** Rat works";
is_approx 0i ** (2 + 0i), 0, "Complex 0 ** Complex works";
+ is_approx 0 ** (2 + 0i), 0, "Real 0 ** Complex works";
}
# used to be RT #68848

0 comments on commit be7da47

Please sign in to comment.