use of javax.measure.quantity.Mass in project uom-se by unitsofmeasurement.
the class PrefixTest method testNestedOperationsNotTheSame.
@Test
public void testNestedOperationsNotTheSame() {
Unit<Mass> m1 = MICRO(GRAM);
Unit<Mass> m2 = GRAM.divide(1000).divide(2000);
UnitConverter c1 = m1.getConverterTo(m2);
List steps1 = c1.getConversionSteps();
UnitConverter c2 = m2.getConverterTo(m1);
List steps2 = c2.getConversionSteps();
assertNotEquals(c1, c2);
assertNotEquals(m1, m2);
}