Beispiel #1
0
 def test_compare_numbers_pass(self):
     num1, num2 = 12, 16
     tol = 5
     tested = MatchBlock.compare_numbers(num1, num2, tolerance=tol)
     self.assertIs(tested, True)
Beispiel #2
0
 def test_compare_numbers_fail(self):
     num1, num2 = 12, 16
     tol = 2
     tested = MatchBlock.compare_numbers(num1, num2, tolerance=tol)
     self.assertIs(tested, False)