cgarling / Cosmology.jl

Cosmological calculations in Julia
Other
0 stars 0 forks source link

jldoctests for unitful quantities #10

Closed cgarling closed 1 year ago

cgarling commented 1 year ago

Powers of Unitful quantities (like 1 / Unitful.Mpc^3) print to console differently on Linux and on Mac OS, causing our doctests (which require an exact print match) to fail. Refactor the doctests with Unitful outputs to do a \approx check and return true instead. Not as nice to read, but should be more stable long-term, as it doesn't depend on how Unitful elects to print quantities to the terminal.