Ad
  • Custom User Avatar

    I encountered the exact same error, and used the exact same hard-coded solution to bypass it. So I came here to post about the same problem. Perhaps that would change your estimation of the likelihood of coding error?

  • Custom User Avatar

    OK, I deleted this line in my code and passed all the tests :). You may call me a liar, but when I was trying to do so previous time, I couldn't pass this one particular test.

  • Default User Avatar

    Well... I tried (Python) this specific case against my solution and the code used to resolve the random tests and both return False.

    Your add to your code is useless because that peculiar case has very little chances to show itself a second time in the random tests. So this add didn't solve anything by returning True because the if statment was never verified in your next attempts.

    Once again, the problem seems to be in your code. ;)

  • Custom User Avatar

    I am sure that there's an error in this test, just because I inserted this line into my code:

    if coordinates == '-177.96186842018926, 53.94099':
    return True

    And then it seemed to work. I used Python.

  • Default User Avatar

    Warning : I don't know what langage you train, but the output is not always clear on what's happening : when the output is something like '-177.96186842018926, 53.94099' failed to validate, this means only that your code didn't do what was expected. BUT !! That doesn't mean that the expected answer was true, just that your code didn't give the correct answer.

    Now, considering that a lot of guys did complete this kata, I suggest you to watch carefully at your code, I think the "issue" lays there... ;)

    I close this issue, assuming that this is a misunderstanding of the output of the tests (which are not really clear, once again). Feel free to post a new issue if you can confirm that there is effectively a problem in the tests (please give the langage you use at the same time if you do).

  • Custom User Avatar

    Post on the "snail" discourse page and also post your code (since I can't help you without it).

  • Default User Avatar

    Hi,

    Thank you for your replay!
    I jus figue out what was wrong. The example tests accepted None value. My function returned None in case when had to return False. I have added one if and it works perfectly.

    However I have still problem with other Kata. Could you plase try to helpe here?
    Kata name: Snail
    Time: 123ms Passed: 2 Failed: 1
    Test Results:
    Log
    []
    ✔ Test Passed
    Log
    [1]
    ✔ Test Passed
    Log
    [1, 1, 2, 3, 6, 9, 8, 7, 4, 5]
    [1, 1, 2, 3, 6, 9, 8, 7, 4, 5]
    ✘ snail([[1, 2, 3], [4, 5, 6], [7, 8, 9]]): [1, 1, 2, 3, 6, 9, 8, 7, 4, 5] should equal [1, 2, 3, 6, 9, 8, 7, 4, 5]

    When I do example test or run my code on PC autput is correct: [1, 2, 3, 6, 9, 8, 7, 4, 5]

    Any idea what may be wrong here?

  • Custom User Avatar

    One of the tests in this kata is broken
    '-177.96186842018926, 53.94099' is expected to be true due to the tests, but the first value is not in range of (-90; 90)