diff --git a/tests/api/hfun.py b/tests/api/hfun.py index c00cb6f0..46083de5 100755 --- a/tests/api/hfun.py +++ b/tests/api/hfun.py @@ -485,10 +485,12 @@ def test_hfun_fast_extent(self): "Areas", hfun_box.area, rast_box.area, - rast_box.difference(hfun_box).area + rast_box.buffer(-0.005 * np.sqrt(rast_box.area)).area, + rast_box.buffer(-0.005 * np.sqrt(rast_box.area)).difference( + hfun_box).area ) self.assertTrue(hfun_box.covers( - rast_box.buffer(-0.002 * np.sqrt(rast_box.area)) + rast_box.buffer(-0.005 * np.sqrt(rast_box.area)) ))