Ad
  • Default User Avatar

    python, inadequate random tests:

    my incorrect solution often passes tests

    I'd publish and link it but cw doesn't feel like publishing it. it is however my latest submission, so if you click View Solution on this post, that's the incorrect solution.

  • Custom User Avatar

    I do not like that I cannot see the test because the messages I was getting for my failures were never correct, so it was extremely hard to debug, and I eventually gave up on this kata.

    It was telling me things like "must return False if there are diagonals" (my code could not even count diagonals) and "must return True with ships touching," but it did, and it never failed on account of ships touching, so I had no idea what was wrong with my code, and it was just frustrating.

    Is there any way for you to make the tests viewable?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution