예제 #1
0
 def test_no_overlap(self):
     r1 = Room(self.cells)
     cs2 = deepcopy(self.cells)
     r2 = Room(cs2)
     r2.shift_vertical(100)
     assert not r1.overlaps(r2)
예제 #2
0
 def test_overlaps(self):
     r1 = Room(self.cells)
     r2 = Room(deepcopy(self.cells))
     assert r1.overlaps(r2)