-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add liter-based volume units to si #116
Conversation
Initial review looks good. Will go over the details tomorrow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two minor changes then we should be good to merge. Squash everything into a single commit.
@gigaliter: prefix!(milli) * prefix!(giga); "GL", "gigaliter", "gigaliters"; | ||
@megaliter: prefix!(milli) * prefix!(mega); "ML", "megaliter", "megaliters"; | ||
@kiloliter: prefix!(milli) * prefix!(kilo); "kL", "kiloliter", "kiloliters"; | ||
@hectoliter: prefix!(milli) * prefix!(hecto); "hL", "hectoliter", "hectoliters"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deca
prefix got missed. Add for tests as well.
test::<v::femtoliter, v::liter>(prefix!(femto)); | ||
test::<v::attoliter, v::liter>(prefix!(atto)); | ||
test::<v::zeptoliter, v::liter>(prefix!(zepto)); | ||
test::<v::yoctoliter, v::liter>(prefix!(yocto)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a blank line just above the function.
I see the force push but not the changes. Try again? |
Odd, seems I forgot to stage. I’ll fix that in a bit here. |
Thanks again! |
This PR adds liter-based (i.e.
liter
and all prefixes) units tosi::volume
. The included tests testliter
againstcubic_meter
and then all of the prefixedliter
variants againstliter
to ensure that they are all correct.