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.
Haskell translation
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
test.it
should decorate a functionhttps://docs.codewars.com/languages/python/authoring/#reference-solution
https://github.com/Codewars/codewars.com/wiki/Codewars-Python-Test-Framework-V2#test-suite-best-practices
Hackery aside, random testing is not strong enough, cheers.
note that what you call
actual
in your tests is actually theexpected
value. Please change this because in any aother kata,actual
stands for the result of the user.test
should be used instead ofTest
(Read this)Consider reading this as well to author better katas in future :)