forked from mpusz/mp-units
@@ -52,7 +52,7 @@ struct kiloyard : prefixed_unit<kiloyard, si::kilo, yard> {};
|
||||
|
||||
struct mile : named_scaled_unit<mile, "mile", no_prefix, ratio(5'280), foot> {};
|
||||
|
||||
struct nautical_mile : named_scaled_unit<nautical_mile, "mi(naut)", no_prefix, ratio(2'000), yard> {};
|
||||
struct nautical_mile : named_scaled_unit<nautical_mile, "nmi", no_prefix, ratio(2'000), yard> {};
|
||||
|
||||
struct dim_length : isq::dim_length<foot> {};
|
||||
|
||||
|
@@ -56,7 +56,7 @@ struct mile : named_scaled_unit<mile, "mi", no_prefix, ratio(25'146, 15'625), si
|
||||
|
||||
// si::international nautical mile
|
||||
// https://en.wikipedia.org/wiki/Nautical_mile
|
||||
struct nautical_mile : named_scaled_unit<nautical_mile, "mi(naut)", no_prefix, ratio(1852), si::metre> {};
|
||||
struct nautical_mile : named_scaled_unit<nautical_mile, "nmi", no_prefix, ratio(1852), si::metre> {};
|
||||
|
||||
// thou
|
||||
// https://en.wikipedia.org/wiki/Thousandth_of_an_inch
|
||||
|
@@ -65,7 +65,7 @@ TEST_CASE("std::format on synthesized unit symbols", "[text][fmt]")
|
||||
CHECK(STD_FMT::format("{}", 1_q_fathom_us) == "1 fathom(us)");
|
||||
CHECK(STD_FMT::format("{}", 1_q_mi) == "1 mi");
|
||||
CHECK(STD_FMT::format("{}", 1_q_mi_us) == "1 mi(us)");
|
||||
CHECK(STD_FMT::format("{}", 1_q_naut_mi) == "1 mi(naut)");
|
||||
CHECK(STD_FMT::format("{}", 1_q_naut_mi) == "1 nmi");
|
||||
CHECK(STD_FMT::format("{}", 1_q_ch) == "1 ch");
|
||||
CHECK(STD_FMT::format("{}", 1_q_rd) == "1 rd");
|
||||
CHECK(STD_FMT::format("{}", 1_q_thou) == "1 thou");
|
||||
|
Reference in New Issue
Block a user