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.
This comment is hidden because it contains spoiler information about the solution
If you have failed tests starting from the 6th test, and you dont have any idea what's wrong, you should know that:
Note to kata creator: Kata instruction is not full, there is nothing about that conditions (please complement).
Description should be language-agnostic (remove function block)
I believe there are some tests that are wrong: a dict type is not supposed to rais an exception on collections.counter for instance. Any suggestion/clue of why that is?
JS: Node v12 should be used along with its appropiate assertion tools (Mocha + Chai).
Refer to this and this
JS: No random tests
The test needs to include functions with named parameters because currently a solution that ignores named parameters still passes.
It would be much better to have logging for failed test cases input values
as it is pretty hard to debug and underdsand which value has failed
Test Passed
Test Failed
True should equal False # ???
I've seen other katas tests support this feature, e.g.:
test.assert_equals(number(["a", "b", "c"]), ["1: a", "2: b", "3: c"])
fails with:
Should handle ["a", "b", "c"] as ["1: a", "2: b", 3: c"]
['a', 'b', 'c'] should equal ['1: a', '2: b', '3: c']
Needs random tests
(Cause my cheating solution shouldn't work :)
A duplicate of http://www.codewars.com/kata/pythons-dynamic-classes-number-3