def test_make_max(self):
        bounded_max = f.make_max(low=0, high=255)
        self.assertEqual(True, callable(bounded_max))

        if callable(bounded_max):
            result = bounded_max(-5, 12, 300)
            self.assertEqual(12, result)
예제 #2
0
    def test_make_max(self):
        bounded_max = f.make_max(low=0, high=255)
        self.assertEqual(True, callable(bounded_max))

        if callable(bounded_max):

            result = bounded_max(1, 7, 84)
            self.assertEqual(84, result)
예제 #3
0
 def test_make_max(self):
     bounded_min = f.make_max(low=0, high=255)
     self.assertEqual(True, callable(bounded_min))
     if callable(bounded_min):
         result = bounded_min(-5, 12, 13)
         self.assertEqual(13, result)