Permalink
Browse files

[spec] fixed some Complex.log tests, and unfudged a bit.

Rakudo fails one test because the result is on a different complex plain that
what is expected


git-svn-id: http://svn.pugscode.org/pugs@21337 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent c00bb0b commit a86b297ea8c8b2ed4476f83e59b065c0038446f2 moritz committed Jul 15, 2008
Showing with 2 additions and 3 deletions.
  1. +2 −3 S29-num/log.t
View
@@ -36,11 +36,10 @@ is_approx(log(-exp(1) + 0i), 1 + 1i * pi, "got the log of -e");
is_approx(log10(-10 + 0i), 1 + 1i * pi / log(10), "got the log10 of -10");
#?pugs todo 'feature'
-#?rakudo todo 'complex log()'
-is_approx(log((1+1i) / sqrt(2)), 1 + 1i * pi / 4, "got log of exp(i pi/4)");
+is_approx(log((1+1i) / sqrt(2)), 0 + 1i * pi / 4, "got log of exp(i pi/4)");
is_approx(log(1i), 1i * pi / 2, "got the log of i (complex unit)");
#?pugs todo 'feature'
-#?rakudo todo 'complex log()'
+#?rakudo todo '.oO( which complex plane do we need to take?)'
is_approx(log(-1i), 1i * pi * 1.5, "got the log of -i (complex unit)");
# TODO: please add more testcases for log10 of complex numbers

0 comments on commit a86b297

Please sign in to comment.