Ad
  • Custom User Avatar

    Please specify a language. Help us help you. Closing.

  • Custom User Avatar

    I also like your solution! I made the kata more difficult to prevent it. Sorry ;-)

  • Custom User Avatar

    I thought you meant the main test case and forgot about the example test case :-) I fixed it. Thanks!

  • Custom User Avatar

    I think the argument order in the test is correct. The actual value is the first one and the expected value is the second one (like you wrote).

  • Custom User Avatar

    Thank you very much kayahr for reviewing and giving valuable feedback, appreciate it!!!

  • Custom User Avatar

    thanks for the link! but I changed from Test.expect into Test.assertEquals method all 3 example, 14 final test cases in "Always perfect" kata and 3 example, 11 final test cases in "Big number problem" kata, are you sure it is still broken?

  • Custom User Avatar

    thanks very much kayahr, I changed all Test.expect into Test.assertEquals. I am new in codewars this is just my second kata. I didnt know about assertEquals method, is there a document which explains that method here?
    can you try to check now the kata?

  • Custom User Avatar

    You're right. There was a problem with the second example test case, i fixed it.

  • Custom User Avatar

    Hi kayahr,

    can you specify, what did you pass and what it returnded. clarify your problem, what exactly happened? then i will try to figure it out.

  • Custom User Avatar

    Hi kayahr,
    Is it possible that your array has some extra "null" cells? Can you test for array dimensions and see if it's what expected?
    If my clue didn't lead you anywhere, can you please post your code (marking it as spoiler)?
    Thanks