Ad
  • Custom User Avatar

    I confirm that the typo still exists

  • Custom User Avatar

    I'm sorry, maybe I wasn't able to explain my issue properly; I have a piece of code that passes a few tests that I run locally, but I'm unable to pass the "hidden" tests of the kata because I receive the message

    "6 should equal 5". 
    

    Ok then, what is the test that fails? How do I debug code that fails to pass a test I don't see?

    Test.assert_equals(get_total_primes(10, 100),  4)   # [23, 37, 53, 73]
    Test.assert_equals(get_total_primes(500, 600), 3)   # [523, 557, 577]
    

    These tests pass; every other test I can imagine and write passes as well.

  • Custom User Avatar

    Well, if I can, please tell me how :) I looked for a button that uncovered the hidden tests for quite a long time.

  • Custom User Avatar

    What is the point of having tests that do not cover all the cases covered by random tests? My code fails because of a test I can't see. So I must guess what's wrong without actually knowing what's wrong. It's pointless (also, against TDD).