Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add some Complex 0 ** tests.

  • Loading branch information...
commit bae50d7c340db8814843d57ed9f9473ae35a4648 1 parent d846e87
@colomon colomon authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 S32-num/complex.t
View
8 S32-num/complex.t
@@ -103,6 +103,14 @@ for @examples -> $z {
is (1 + 2i).im, 2, 'Complex.im works';
}
+#?niecza todo "Not handling edge cases well"
+#?rakudo todo "Not handling edge cases well"
+{
+ 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";
+}
+
# used to be RT #68848
{
is_approx exp(3.0 * log(1i)), -1.83697e-16-1i,
Please sign in to comment.
Something went wrong with that request. Please try again.