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.
Why have you created 4 posts like this one? Delete the other 3, use Github Codewars Issue tracker
Fixed.
Test case are run sequentially therefore if the code produced include a global variable, you want to make sure to re-initialize each global variable at the beginning of the solve method.
I hope this clue help you.
What language?
I'm not sure if I'm understanding, but just download
cw-2.py
and import it in your test?Make new directory to experiment in and download the test framework.
Add
solution.py
:Add
test.py
:Run tests:
See https://github.com/Codewars/python-test-framework instead. It has few updates and that's where it's maintained now.
These are 2 totally different things. In case you're interested in the latter, custom framework is used here.