Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[t/spec] Add a test for Num.log(Complex), which needs to be skipped n…

…ow, alas.

git-svn-id: http://svn.pugscode.org/pugs@30557 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
commit 5ee0b4cd77a13d586221f8feeae2fe120ddb90d5 1 parent dd61f52
colomon authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 S32-num/complex.t
View
4 S32-num/complex.t
@@ -86,9 +86,11 @@ for @examples -> $z {
'exp(3.0 * log(1i))';
sub iPower($a, $b) { exp($b * log($a)) };
is_approx iPower(1i, 3.0), -1.83697e-16-1i, 'same as wrapped as sub';
-
}
+#?rakudo skip "Num log with a Complex base NYI"
+is_approx e.log(1i), -2i / pi, "log e base i == -2i / pi";
+
# Complex math with strings, to make sure type coercion is working correctly
{
is 3i + "1", 1 + 3i, '3i + "1"';
Please sign in to comment.
Something went wrong with that request. Please try again.