Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
The beta process exists to resolve issues before potential approval. While my solution might be ridiculous to you, input modification of mutable objects is an issue. Anyways, if you stick around long enough on codewars, that and not having random tests come up a lot in beta testing.
Your tests rely on the user also defining this function. Check my solution for what could go wrong by doing that.
from random tests:
polar_form(31531-494i) = > '31534.8695e^(6.2675*i)' should equal '31534.8695e^(3.1259*i)'
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
Approved. Thanks for contributing.
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.
Okay, that's better. The sample tests still fail to run without erroring.
spec/solution_spec.lua:1: attempt to call a nil value (global 'assert_match')
)Well, I just woke up. I believe it stemmed from the original issue referencing
values
. Anyways, it's fixed.I don't think your solution is working correctly.
n=1943 => 25 should equal ''
still an issue
Glad you liked it. Translations are always welcome. Cheers.
I don't see the changes. Did you republish?
False
if the array can't be shuffled.None
would be more suitable.Loading more items...