def test_latest_score(self):
     scores = [100, 0, 90, 30]
     expected = 30
     self.assertEqual(latest(scores), expected)
 def test_latest_score(self):
     scores = [100, 0, 90, 30]
     expected = 30
     assert latest(scores) == expected
Esempio n. 3
0
 def test_latest_score(self):
     scores = [100, 0, 90, 30]
     expected = 30
     self.assertEqual(latest(scores), expected)
Esempio n. 4
0
 def test_run_multiple_queries(self):
     scores = [10, 20, 30, 40, 50, 45]
     self.assertEqual(latest(scores), 45)
     self.assertEqual(personal_top_three(scores), [50, 45, 40])
Esempio n. 5
0
 def test_latest_scores(self):
     self.assertEqual(4, latest(self.scores_1))