xo-unit: + abbrevs + tests for imperial units {in,ft,yd,mi}
This commit is contained in:
parent
5f20b53485
commit
f4c1ef5ee6
2 changed files with 17 additions and 0 deletions
|
|
@ -111,6 +111,11 @@ namespace xo {
|
|||
REQUIRE_x2(bu::lightsecond.abbrev() == flatstring("lsec"));
|
||||
REQUIRE_x2(bu::astronomicalunit.abbrev() == flatstring("AU"));
|
||||
|
||||
REQUIRE_x2(bu::inch.abbrev() == flatstring("in"));
|
||||
REQUIRE_x2(bu::foot.abbrev() == flatstring("ft"));
|
||||
REQUIRE_x2(bu::yard.abbrev() == flatstring("yd"));
|
||||
REQUIRE_x2(bu::mile.abbrev() == flatstring("mi"));
|
||||
|
||||
log && log(xtag("time", basis_unit2_abbrev(dim::time, scalefactor_ratio_type(1, 1))));
|
||||
|
||||
REQUIRE_x2(bu::picosecond.abbrev() == bu_abbrev_type::from_chars("ps"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue