Please consider offering answers and suggestions to help other students!
And if you fix a problem by following a suggestion here,
it would be great if other interested students could see a short
"Great, fixed it!" followup message.
I seem to fix one issue and another pops up, not really sure where to go anymore. I seem to always be getting these fails. Have I missed something with these calculations, if so let know if you can point me in a direction that might help solve these issues.
One more thing. I am not sure if this will actually get any responses since I have seen that not many other students seem to get responses on their questions either, which is concerning. I thought that the teacher answers question on this forum, it seems this might not be the case. Is there anywhere I can get help from, when the labs aren't on
Thank you!
FAIL: test_get_possible_rank (__main__.TestSpeedrunning)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\use\Downloads\test_speedrunning.py", line 125, in test_get_possible_rank
self.assertEqual(rank, nlt+1, msg=msg)
AssertionError: 139 != 145 : get_possible_rank() gave 139 but there are 144 runs faster than 81
======================================================================
FAIL: test_get_rank_time (__main__.TestSpeedrunning)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\use\Downloads\test_speedrunning.py", line 110, in test_get_rank_time
self.assertGreater(rank, nlt, msg=msg)
AssertionError: 163 not greater than 172 : Wanted rank 163 but there are 172 runs faster than 100
======================================================================
FAIL: test_leaderboard_example (__main__.TestSpeedrunning)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\olive\Downloads\test_speedrunning.py", line 43, in test_leaderboard_example
self.assertEqual(board.get_rank_time(5), 903)
AssertionError: 913 != 903
And if try and fix get_rank_time, I get.
TypeError: '<' not supported between instances of 'int' and 'NoneType'