Exemple #1
0
 def test_PositiveInt_OverLap(self):
     result = overlap([1, 5], [3, 6])
     self.assertEqual(result, True)
Exemple #2
0
 def test_PositiveInt_NotOverLap(self):
     result = overlap([1, 5], [6, 12])
     self.assertEqual(result, False)
Exemple #3
0
 def test_Neighbour_OverLap(self):
     result = overlap((0, 2), (2, 3))
     self.assertEqual(result, True)
Exemple #4
0
 def test_Origin_OverLap(self):
     result = overlap((0, 0), (0, 0))
     self.assertEqual(result, True)
Exemple #5
0
 def test_Integers_OverLap(self):
     result = overlap((-1, 2), (0, -2))
     self.assertEqual(result, True)
Exemple #6
0
 def test_NegativeInt_NotOverLap(self):
     result = overlap((-1, -5), (-6, -11))
     self.assertEqual(result, False)
Exemple #7
0
 def test_NegativeInt_OverLap(self):
     result = overlap([-1, -5], [-3, -6])
     self.assertEqual(result, True)