コード例 #1
0
 def test_not_overlapping2(self):
     self.assertFalse(isOverlap(1, 3, 3, 5))
コード例 #2
0
 def test_negative_overlapping_slightly1(self):
     self.assertTrue(isOverlap(-1, -4, -3, -5))
コード例 #3
0
 def test_negative_overlapping_completely1(self):
     self.assertTrue(isOverlap(-1, -5, -3, -4))
コード例 #4
0
 def test_overlapping_completely4(self):
     self.assertTrue(isOverlap(5, 1, 3, 4))
コード例 #5
0
 def test_negative_not_overlapping(self):
     self.assertFalse(isOverlap(-1, -3, -4, -5))
コード例 #6
0
 def test_overlapping_completely2(self):
     self.assertTrue(isOverlap(1, 5, 3, 5))
コード例 #7
0
 def test_overlapping_completely3(self):
     self.assertTrue(isOverlap(5, 1, 4, 3))
コード例 #8
0
 def test_overlapping_slightly4(self):
     self.assertTrue(isOverlap(5, 3, 1, 4))
コード例 #9
0
 def test_overlapping_slightly3(self):
     self.assertTrue(isOverlap(4, 1, 5, 3))
コード例 #10
0
 def test_overlapping_slightly2(self):
     self.assertTrue(isOverlap(1, 3.5, 3, 5))
コード例 #11
0
 def test_not_overlapping4(self):
     self.assertFalse(isOverlap(5, 4, 1, 3))
コード例 #12
0
 def test_not_overlapping3(self):
     self.assertFalse(isOverlap(3, 1, 5, 4))