def test_polyline_area3(): a = 1000 pl = PolyLine([(1 + a, 2 + a), (11 + a, 2 + a), (10 + a, 0 + a), (0 + a, 0 + a)], copy_data=True) assert pl.get_area() == approx(20)
def test_polyline_area5(): pl = PolyLine([(1, 1), (2, 1), (1, 3)], copy_data=True) assert pl.get_area() == approx(1)
def test_polyline_area2(): pl = PolyLine([(1, 2), (11, 2), (10, 0), (0, 0)], copy_data=True) assert pl.get_area() == approx(20)