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.
You're right that assertion messages could be more helpful, that's why I didn't close the issue :P You'll have to get used to printing stuff - many translations are similar like this one, and there's little effort to fix them.
I know there is not part1&part2="" :D obviously. yes i dit not know there is posibility to print input in codewars thanks. but still it means adding useles code then run again failed code. it may remain in my finished code after i finish solution. sorry thats what i consider wrong aproach instead i prefer to use debug option in wrong answer which is not here. And the main isue i am trying to point out is that error message does not show whole input which cause error only part of input without posibility to find input by "correct way". To solve this issue just add whole input into error message, something like test failed on input"s="bananas" part1="bans" part2="na" expected true but was false". for example i needed to dive into comments and other websites to find what was wrong. Meanwhile trying to find what caused issue i came acros few solutions which would spoil things for me.
But there is no test with this string and empty part1, part2 (and obviously it wouldn't expect
true
). I don't see a problem with debugging here, simply print the input to Console and debug locally, if necessary. See https://docs.codewars.com/training/troubleshooting/#print-inputTest Failed
Going bananas!
Expected: True
But was: False
I simply cannot debug it.
I even try to put this into my code s="Going bananas!", part1="", part2="" obviously wrong please fix error message imposible to find bug even tho i guess where bug is.. i dont want to be guessing bug, i want to learn