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.
ORDER BY start of interval ASC
JS - Fixed test error handling is broken when returning null
"abc" "x"
expected '' to equal null
duplicate
https://www.codewars.com/kata/54cf4fc26b85dc27bf000a6b
duplicate
https://www.codewars.com/kata/5260074c9a0022f83e0009da
I can’t help, because I don’t know Python) But in general, this is the main task of this kata, to figure out how to accept both the name of the method and its parameters, so in this question the tips will be spoilers.
You can distinguish a weapon method by its name:
approved
closed
fixed
Tests can have any names, including random characters, for example
swordOfAhkjhkj
Any hint other than that you need to use metaprogramming for this kata will tell too much about the solution
The writing of methods corresponds to that accepted in a particular language: for Javascript camelcase, for Python and Ruby snakecase. Perhaps you solving in Python based on the description for the JS? Because the examples in the description differ depending on the selected language.
It is tested without these additional checks
But of course I’m not a professional programmer and I may not understand a lot, so I’ll have to agree with you and add this check, because I don’t have any arguments other than the fact that this concept seems inelegant to me
My version for ruby
Because the last 10 tests are enough for a probability close to 100%, and new weapon names that are always first/last in alphabetical order look more attractive than adding a or z
Loading more items...