diff --git a/tests/GeometryTest.php b/tests/GeometryTest.php index dd73dd0..471654c 100644 --- a/tests/GeometryTest.php +++ b/tests/GeometryTest.php @@ -856,7 +856,7 @@ public function testDistance(string $geometry1, string $geometry2, float $distan $geometry1 = Geometry::fromText($geometry1); $geometry2 = Geometry::fromText($geometry2); - self::assertSame($distance, $geometry1->distance($geometry2)); + self::assertEqualsWithDelta($distance, $geometry1->distance($geometry2), 1e-14); } public function providerDistance() : array