def test_doesnt_touch_edge_non_ortho(self): p1 = IntegerPoint(1, 1) edge = IntegerSegment((0, 0), (2, 4)) self.assertFalse(p1.touches_edge(edge))
def test_touches_edge_non_ortho(self): p1 = IntegerPoint(1, 2) edge = IntegerSegment((0, 0), (2, 4)) self.assertTrue(p1.touches_edge(edge))