Closed andriyDev closed 11 months ago
One of the doctests also fails.
failures:
---- geo\src\algorithm\rotate.rs - algorithm::rotate::Rotate::rotate_around_point (line 66) stdout ----
Test executable failed (exit code: 101).
stderr:
thread 'main' panicked at 'assertion failed: `(left == right)`
left: `LineString([Coord { x: 2.9289321881345245, y: 7.0710678118654755 }, Coord { x: 10.0, y: 7.0710678118654755 }, Coord { x: 17.071067811865476, y: 7.0710678118654755 }])`,
right: `LineString([Coord { x: 2.9289321881345245, y: 7.071067811865475 }, Coord { x: 10.0, y: 7.0710678118654755 }, Coord { x: 17.071067811865476, y: 7.0710678118654755 }])`', geo\src\algorithm\rotate.rs:19:1
I ran the tests on main and got test failures for the following:
These all are just minor floating point errors. I am running on Windows 10, using MSVC, on an i7-8700K. This occurs on both debug and release builds. We likely just need to add approx checks for these tests.