From ddba9bdecae631db9a7a1170359d92483d1cdb0b Mon Sep 17 00:00:00 2001 From: nick pascucci Date: Mon, 28 Feb 2022 09:35:19 +0000 Subject: [PATCH] fix: use singular unit names in si::absement --- src/si/absement.rs | 96 +++++++++++++++++++++++----------------------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/src/si/absement.rs b/src/si/absement.rs index 59bcaf11..f4d9fced 100644 --- a/src/si/absement.rs +++ b/src/si/absement.rs @@ -13,52 +13,52 @@ quantity! { Z0, // amount of substance Z0>; // luminous intensity units { - @yottameter_seconds: prefix!(yotta); "Ym · s", "yottameter second", + @yottameter_second: prefix!(yotta); "Ym · s", "yottameter second", "yottameter seconds"; - @zettameter_seconds: prefix!(zetta); "Zm · s", "zettameter second", + @zettameter_second: prefix!(zetta); "Zm · s", "zettameter second", "zettameter seconds"; - @exameter_seconds: prefix!(exa); "Em · s", "exameter second", + @exameter_second: prefix!(exa); "Em · s", "exameter second", "exameter seconds"; - @petameter_seconds: prefix!(peta); "Pm · s", "petameter second", + @petameter_second: prefix!(peta); "Pm · s", "petameter second", "petameter seconds"; - @terameter_seconds: prefix!(tera); "Tm · s", "terameter second", + @terameter_second: prefix!(tera); "Tm · s", "terameter second", "terameter seconds"; - @gigameter_seconds: prefix!(giga); "Gm · s", "gigameter second", + @gigameter_second: prefix!(giga); "Gm · s", "gigameter second", "gigameter seconds"; - @megameter_seconds: prefix!(mega); "Mm · s", "megameter second", + @megameter_second: prefix!(mega); "Mm · s", "megameter second", "megameter seconds"; - @kilometer_seconds: prefix!(kilo); "km · s", "kilometer second", + @kilometer_second: prefix!(kilo); "km · s", "kilometer second", "kilometer seconds"; - @hectometer_seconds: prefix!(hecto); "hm · s", "hectometer second", + @hectometer_second: prefix!(hecto); "hm · s", "hectometer second", "hectometer seconds"; - @decameter_seconds: prefix!(deca); "dam · s", "decameter second", + @decameter_second: prefix!(deca); "dam · s", "decameter second", "decameter seconds"; - @meter_seconds: prefix!(none); "m · s", "meter second", + @meter_second: prefix!(none); "m · s", "meter second", "meter seconds"; - @decimeter_seconds: prefix!(deci); "dm · s", "decimeter second", + @decimeter_second: prefix!(deci); "dm · s", "decimeter second", "decimeter seconds"; - @centimeter_seconds: prefix!(centi); "cm · s", "centimeter second", + @centimeter_second: prefix!(centi); "cm · s", "centimeter second", "centimeter seconds"; - @millimeter_seconds: prefix!(milli); "mm · s", "millimeter second", + @millimeter_second: prefix!(milli); "mm · s", "millimeter second", "millimeter seconds"; - @micrometer_seconds: prefix!(micro); "µm · s", "micrometer second", + @micrometer_second: prefix!(micro); "µm · s", "micrometer second", "micrometer seconds"; - @nanometer_seconds: prefix!(nano); "nm · s", "nanometer second", + @nanometer_second: prefix!(nano); "nm · s", "nanometer second", "nanometer seconds"; - @picometer_seconds: prefix!(pico); "pm · s", "picometer second", + @picometer_second: prefix!(pico); "pm · s", "picometer second", "picometer seconds"; - @femtometer_seconds: prefix!(femto); "fm · s", "femtometer second", + @femtometer_second: prefix!(femto); "fm · s", "femtometer second", "femtometer seconds"; - @attometer_seconds: prefix!(atto); "am · s", "attometer second", + @attometer_second: prefix!(atto); "am · s", "attometer second", "attometer seconds"; - @zeptometer_seconds: prefix!(zepto); "zm · s", "zeptometer second", + @zeptometer_second: prefix!(zepto); "zm · s", "zeptometer second", "zeptometer seconds"; - @yoctometer_seconds: prefix!(yocto); "ym · s", "yoctometer second", + @yoctometer_second: prefix!(yocto); "ym · s", "yoctometer second", "yoctometer seconds"; - @foot_seconds: 3.048_E-1; "ft · s", "foot second", "foot seconds"; - @inch_seconds: 2.54_E-2; "in · s", "inch second", "inch seconds"; - @kilometer_hours: 3.6_E6; "km · h", "kilometer hour", "kilometer hours"; + @foot_second: 3.048_E-1; "ft · s", "foot second", "foot seconds"; + @inch_second: 2.54_E-2; "in · s", "inch second", "inch seconds"; + @kilometer_hour: 3.6_E6; "km · h", "kilometer hour", "kilometer hours"; } } @@ -80,31 +80,31 @@ mod tests { #[test] fn check_units() { - 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, T: t::Conversion, A: a::Conversion>() { Test::assert_eq(&Absement::new::(V::one()),