Example #1
0
 def test_smallrangelargedivisor(self):
     A = 1
     B = 3
     K = 50
     self.assertEqual(solution(A, B, K),
                      0,
                      msg="small range, divisor oustside of range")
Example #2
0
 def test_mediumrangelargedivisor(self):
     A = 1
     B = 12
     K = 13
     self.assertEqual(solution(A, B, K),
                      0,
                      msg="medium range, no divisible integers")
Example #3
0
 def test_smallrangesmalldivisor(self):
     A = 1
     B = 4
     K = 2
     self.assertEqual(solution(A, B, K),
                      2,
                      msg="small range, small divisor")
Example #4
0
 def test_example1(self):
     A = 6
     B = 11
     K = 2
     self.assertEqual(solution(A, B, K), 3, msg="example test")
Example #5
0
 def extrem_ifempty(self):
     A = 10
     B = 10
     K = 5
     self.assertEqual(solution(A, B, K), 1, msg="extreme, empty")