Skip to content
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

feat(volume_rate): Add cubic_meter_per_min and cubic_meter_per_hour as volume rate units #406

Merged
merged 1 commit into from
Feb 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/si/volume_rate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ quantity! {
"dam³/s", "cubic decameter per second", "cubic decameters per second";
@cubic_meter_per_second: prefix!(none); "m³/s", "cubic meter per second",
"cubic meters per second";
@cubic_meter_per_minute: 1.0_E0 / 6.0_E1; "m³/min", "cubic meter per minute",
"cubic meters per minute";
@cubic_meter_per_hour: 1.0_E0 / 3.6_E3; "m³/h", "cubic meter per hour",
"cubic meters per hour";
@cubic_decimeter_per_second: prefix!(deci) * prefix!(deci) * prefix!(deci);
"dm³/s", "cubic decimeter per second", "cubic decimeters per second";
@cubic_centimeter_per_second: prefix!(centi) * prefix!(centi) * prefix!(centi);
Expand Down Expand Up @@ -187,6 +191,8 @@ mod tests {
test::<v::cubic_hectometer, t::second, r::cubic_hectometer_per_second>();
test::<v::cubic_decameter, t::second, r::cubic_decameter_per_second>();
test::<v::cubic_meter, t::second, r::cubic_meter_per_second>();
test::<v::cubic_meter, t::minute, r::cubic_meter_per_minute>();
test::<v::cubic_meter, t::hour, r::cubic_meter_per_hour>();
test::<v::cubic_decimeter, t::second, r::cubic_decimeter_per_second>();
test::<v::cubic_centimeter, t::second, r::cubic_centimeter_per_second>();
test::<v::cubic_millimeter, t::second, r::cubic_millimeter_per_second>();
Expand Down