use of tech.units.indriya.format.LocalUnitFormat in project indriya by unitsofmeasurement.
the class LocalFormatTest method testPrefixKm.
@Test
@Disabled
public // TODO LocalUnitFormat won't parse Compound Units, EBNF does, also see https://github.com/unitsofmeasurement/uom-se/issues/145
void testPrefixKm() {
final UnitFormat format = LocalUnitFormat.getInstance();
Unit<?> u = format.parse("km");
assertEquals(KILO(METRE), u);
assertEquals("km", u.toString());
}
Aggregations