ianmackenzie / elm-units

Simple, safe and convenient unit types and conversions for Elm
https://package.elm-lang.org/packages/ianmackenzie/elm-units/latest/
BSD 3-Clause "New" or "Revised" License
84 stars 14 forks source link

Add round-trip fuzz tests #5

Closed ianmackenzie closed 5 years ago

ianmackenzie commented 6 years ago

Add a generic testing function that:

For example, Length.feet 5 |> Length.inFeet should return (almost) exactly 5. Then, use that generic testing function to test as many pairs of functions as possible:

etc.