Ad
  • Custom User Avatar

    Lol I literally only just figured out that they don't want actual Ruby objects (which doesn't make much sense). No idea how to make dot notation work for Ruby with hashes..

  • Custom User Avatar

    IIRC changing the sample tests will not trigger re-validation. Only changing the actual tests does (which is why it's locked after 500 solves).

    Though I guess you should also blame me for stirring up the top 5 leaderboards ;-)

  • Custom User Avatar

    Still when you press Run Sample Tests the tests will not be meaningful so I shall take the path of least resistance. Plus, I'm also hesitant to republish and trigger revalidation/python 2/3 issues.

  • Custom User Avatar

    There are comments in the sample tests that explain this.

    # since these are hard coded, you should substitute with the current top 5
    

    Sample tests are static, there is no network request in the sample tests. I can't update them dynamically without exposing a solution to the user so the user must update them manually or ignore them and use the real tests(Attempt button). The real tests aren't static so they do check against current leaderboard data, allowing you to pass if your code is correct. You can look at the test fixtures after you've passed.