Skip to content

Commit

Permalink
Adding some units requested in open issues
Browse files Browse the repository at this point in the history
Signed-off-by: Gaël L'hopital <gael@lhopital.org>

Signed-off-by: Gaël L'hopital <gael@lhopital.org>
  • Loading branch information
clinique committed Dec 3, 2024
1 parent 5237125 commit 8db6438
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ public void testYearMonthDay() {
}

@Test
<<<<<<< Upstream, based on origin/main
public void testColorTemperatureAliases() {
QuantityType<?> value;
value = QuantityType.valueOf("20 mired");
Expand All @@ -441,7 +440,8 @@ public void testColorTemperatureAliases() {
assertEquals(Units.MIRED, value.getUnit());
value = QuantityType.valueOf("20 MK⁻¹");
assertEquals(Units.MIRED, value.getUnit());
=======
}

public void testGrains() {
assertThat(ImperialUnits.GRAIN.getSymbol(), is("gr"));
QuantityType<?> oneHundredGrains = QuantityType.valueOf("100 gr");
Expand All @@ -458,7 +458,6 @@ public void testArealDensity() {
QuantityType<?> newspaper = QuantityType.valueOf("72 g/m²");
QuantityType<?> converted = newspaper.toUnit(Units.KILOGRAM_PER_SQUARE_METRE);
assertEquals(converted.doubleValue(), 0.072);
>>>>>>> df0bd5e Adding some units requested in open issues
}

private static class QuantityEquals extends IsEqual<Quantity<?>> {
Expand Down

0 comments on commit 8db6438

Please sign in to comment.