Ad
  • Custom User Avatar

    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.

  • Default User Avatar

    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.

  • Custom User Avatar

    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-input

  • Default User Avatar

    Test 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