Closed ptomulik closed 1 year ago
The tests failed due to self.assertEqual
it should be self.assertAlmostEqual
-1
-1.0000000000000002
The tests failed due to
self.assertEqual
it should beself.assertAlmostEqual
-1 -1.0000000000000002
Done. The funny thing is it worked on Linux but not on other OSes. :)
Likely something with order of operations at the far end of the weird trash at the end of the floats. I'd likely be more surprised if they'd get the same results. As far as I'm concerned the last bit in the mantissa is random.
This PR is pretty bullet proof. I checked the blame and the tests and the logic behind it. All seems quite reasonable.
Hi, it seems that there are two problems with union_bbox():
I believe this PR fixes both of these issues.