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