ANONYMOUS wrote:
> 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'
I do not reply to every question. I wait for others to answer, and also there are labs and lab facilitators for answering lab related questions. You should attend labs and ask questions.