Ad
  • Default User Avatar

    when I tested I passed but when making an attempt I failed

    then you did not pass

    https://docs.codewars.com/training/troubleshooting#test-attempt

    not a kata issue, unless you provide more evidence

  • Custom User Avatar

    I'm a bit confused on that because when I enter the test in VS code it is correct. Could you direct me to a reading that explains what you mean by Codewars kata test do you mean like an edge case?

  • Custom User Avatar

    What does your solution return for [ 12, 30, 21 ] in your terminal? Expected answer is 6, and your solution seems to return 1?

    The fact that amount of failing tests is different every time is not a problem, that's how tests in Codewars kata work. Your solution is probably buggy and returns wrong answers.

  • Custom User Avatar

    For some reason when I make an attempt the failures vary despite it being the same code. Sometimes its 1 sometimes its 3 sometimes it 17 and 33 and so on. The only fail it shows is Expected: '6', instead got: '1' but when done in my terminal it all passes

  • Custom User Avatar

    I think there's a misunderstanding the AI didn't do anything for me but read the test had 4 other people look it over including a lead Dev from google, but the ending issue is that the test

  • Custom User Avatar

    Yet another reason not to trust AI to do everything for you...

  • Custom User Avatar

    Hello! Aside from the need for random test I completed the problem and when I tested I passed but when making an attempt I failed. I could not understand why I failed and decided to run this through ChatGPT to see if maybe I have an Error. The AI says my code is correct. It and I could be wrong but the expected image and my inputed image are similar in my opinion so I think this could be an error