diff --git a/src/si/volume_rate.rs b/src/si/volume_rate.rs index d6f64f55..40e0ff82 100644 --- a/src/si/volume_rate.rs +++ b/src/si/volume_rate.rs @@ -105,17 +105,17 @@ quantity! { @cord_per_second: 3.624_556_E0; "cords/s", "cord per second", "cords per second"; @cubic_foot_per_second: 2.831_685_E-2; "ft³/s", "cubic foot per second", "cubic feet per second"; - @cubic_foot_per_minute: 4.719_474_E-4; "ft³/min", "cubic foot per minute", + @cubic_foot_per_minute: 2.831_685_E-2 / 6.0_E1; "ft³/min", "cubic foot per minute", "cubic feet per minute"; @cubic_inch_per_second: 1.638_706_E-5; "in³/s", "cubic inch per second", "cubic inches per second"; - @cubic_inch_per_minute: 2.731_177_E-7; "in³/min", "cubic inch per minute", + @cubic_inch_per_minute: 1.638_706_E-5 / 6.0_E1; "in³/min", "cubic inch per minute", "cubic inches per minute"; @cubic_mile_per_second: 4.168_182_E9; "mi³/s", "cubic mile per second", "cubic miles per second"; @cubic_yard_per_second: 7.645_549_E-1; "yd³/s", "cubic yard per second", "cubic yards per second"; - @cubic_yard_per_minute: 1.274_258E-2; "yd³/min", "cubic yard per minute", + @cubic_yard_per_minute: 7.645_549_E-1 / 6.0_E1; "yd³/min", "cubic yard per minute", "cubic yards per minute"; @cup_per_second: 2.365_882_E-4; "cup/s", "cup per second", "cups per second"; @fluid_ounce_per_second: 2.957_353_E-5; "fl oz/s", "fluid ounce per second", @@ -125,8 +125,9 @@ quantity! { @gallon_imperial_per_second: 4.546_09_E-3; "gal (UK)/s", "Imperial gallon per second", "Imperial gallons per second"; @gallon_per_second: 3.785_412_E-3; "gal/s", "gallon per second", "gallons per second"; - @gallon_per_minute: 6.309_020_E-5; "gal/min", "gallon per minute", "gallons per minute"; - @gallon_per_day: 4.381_264_E-8; "gal/d", "gallon per day", "gallons per day"; + @gallon_per_minute: 3.785_412_E-3 / 6.0_E1; "gal/min", "gallon per minute", + "gallons per minute"; + @gallon_per_day: 3.785_412_E-3 / 8.64_E4; "gal/d", "gallon per day", "gallons per day"; @gill_imperial_per_second: 1.420_653_E-4; "gi (UK)/s", "Imperial gill per second", "Imperial gills per second"; @gill_per_second: 1.182_941_E-4; "gi/s", "gill per second", "gills per second"; @@ -170,84 +171,89 @@ mod tests { fn check_units() { // Values too large for f32. if TypeId::of::() == TypeId::of::() { - test::(); - test::(); - test::(); - test::(); + test::(); + test::(); + test::(); + test::(); } - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); // Values too small for f32. if TypeId::of::() == TypeId::of::() { - test::(); - test::(); - test::(); + test::(); + test::(); + test::(); } - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); - test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); + test::(); - fn test, R: r::Conversion>() { + fn test, T: t::Conversion, R: r::Conversion>() { Test::assert_eq(&VolumeRate::new::(V::one()), - &(Volume::new::(V::one()) / Time::new::(V::one()))); + &(Volume::new::(V::one()) / Time::new::(V::one()))); } } }