elm-geometry
elm-geometry copied to clipboard
Add more fuzz tests for point/vector/direction functions
The Point#d
, Vector#d
and Direction#d
modules were recently optimized in the coordinate-systems
branch to avoid unnecessary object allocations and function calls, but this also meant most functions got more verbose and therefore more prone to typos. It would be very useful to add some more fuzz and/or hardcoded tests for the various functions in these modules, following the patterns in the existing Tests.Point3d
etc. test modules. ~~Please make sure you make any PRs against the coordinate-systems
branch!~~
Just found one such typo bug myself and added a couple of tests for it: https://github.com/ianmackenzie/elm-geometry/commit/5065e5db05c46b1e64684dafb8e83cea4d4880d3
Update: the coordinate-systems
branch has been merged back into master
and no longer exists, so please make any PRs against master
instead.