Ad
  • Custom User Avatar

    Three years later...

    I have updated Ruby, JS, and CoffeScript to use assertEquals now that they can be edited again.

  • Custom User Avatar

    Yes, I agree with you. Unfortunately, the Kata is no longer editable.

  • Custom User Avatar

    Ah, oops! OK, I've amended that test case so it should work both ways. Thank you!

  • Default User Avatar

    The current solutions were invalidated anyway on the "should render the leaderboard with a subset of users" test - the leaderboard variable still contains all 100 names.

  • Custom User Avatar

    Great point, that's a much better way to do it! I've updated the example test cases and test cases to use your suggested tests. I've also kept the leaderboard array preloaded so current solutions won't be invalidated, but hopefully people will use your way going forward. Thank you! =)

  • Default User Avatar

    I absolutely agree. The "react" way is to pass data in from the top and not use a global array...