I'm on my phone so not really looking. The error I pasted above in one of the bullet points seems to imply you're not importing the the assert function.
Thank you for the feedback and sorry for the Kyu confusion, started playing with it and it seems like i ended up putting 1kyu instead of 5. I've made the modifications you suggested to the Kata.
How is this better then capitalize?
Do not use rounding or formatting floating point numbers to string with fixed precision, this is a bad practice
Use
assert_approx_equals
https://docs.codewars.com/authoring/recipes/floating-point#do-not-use-rounding-or-stringification-to-work-around-problems-with-precision
from random tests:
polar_form(31531-494i) = > '31534.8695e^(6.2675*i)' should equal '31534.8695e^(3.1259*i)'
Fixed.
polar_form(4+3i) = > '5e^(0.6435*i)' should equal '5e^(0.9273*i)'
This is incorrect, as are many of the tests.
5e^(0.6435*i) => 4+3i
5e^(0.9273*i) => 3+4i
This comment is hidden because it contains spoiler information about the solution
NICEEEEEEEEEEEE
Approved. Thanks for contributing.
Haskell translation
Nice approach, and can be made a lot shorter --> 91 bytes
This comment is hidden because it contains spoiler information about the solution
I'm on my phone so not really looking. The error I pasted above in one of the bullet points seems to imply you're not importing the the assert function.
how could i fix that
Okay, that's better. The sample tests still fail to run without erroring.
Thank you for the feedback and sorry for the Kyu confusion, started playing with it and it seems like i ended up putting 1kyu instead of 5. I've made the modifications you suggested to the Kata.
Loading more items...