Example #1
0
 def test_lower(self):
     self.assertEqual(quiz.closer_to(10, 8, 7), 8)
Example #2
0
 def test_b_closer(self):
     self.assertEqual(quiz.closer_to(10, 12, 11), 11)
Example #3
0
 def test_equidistant(self):
     self.assertEqual(quiz.closer_to(10, 11, 11), 0)
Example #4
0
 def test_a_closer(self):
     self.assertEqual(quiz.closer_to(10, 11, 12), 11)