busstoptaktik / geodesy

Rust geodesy
Apache License 2.0
66 stars 6 forks source link

Better assertions #53

Closed busstoptaktik closed 1 year ago

busstoptaktik commented 1 year ago

Introduce the assert_float_eq! macro from the float_eq package, which give excellent diagnostics for floating point comparisons in multiple dimensions.

Also introduce 2D and 3D versions of the some_basic_coordinates function, to reduce the noise when using assert_float_eq! in tests.