Ad
  • Custom User Avatar

    I think there's something wrong in the random tests.

    I can pass the 5 regular tests, but I get inconsistent failures in the random tests.

    Sometimes, I get a passing assert for a random test with a toughest challenge:

    Test Passed: Value == It took 423 licks to get to the tootsie roll center of a tootsie pop. The toughest challenge was Something Bad.

    But then at other times, I get a failing assert for a random test that has a toughest challenge:

    Expected: It took 114 licks to get to the tootsie roll center of a tootsie pop. The toughest challenge was Something Bad., instead got: It took 114 licks to get to the tootsie roll center of a tootsie pop.

    Why would I be able to pass some tests that have a toughest challenge but not other tests? In the personal testing for my code, in the case where there are multiple toughest challenges, my code only picks the first one that occurs. I also tried to set the code to pick the last toughest challenge, but the random test errors still occur.

    What does it mean when the random tests say Something Good and Something Bad? Those reasons are very obscure for debugging and trying to isolate the error.

    Thank you for making these 80's-themed problems. They're really fun!