Skip to content

Commit

Permalink
323: Take ICU Complexity into consideration and reconsider the term
Browse files Browse the repository at this point in the history
"Compound"

Task-Url: #323
  • Loading branch information
keilw committed Jan 26, 2021
1 parent 9b3a613 commit 4528026
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/test/java/tech/units/indriya/AbsQuantityTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static tech.units.indriya.unit.Units.METRE;

import java.math.BigDecimal;

import javax.measure.Quantity;
import javax.measure.format.MeasurementParseException;
import javax.measure.quantity.Dimensionless;

import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

import tech.units.indriya.quantity.Quantities;
Expand All @@ -50,12 +51,10 @@
*
*/
public class AbsQuantityTest {
private static final Number NULL_NUMBER = null;

@Test
@Disabled("TODO Fix https://github.com/unitsofmeasurement/indriya/issues/325")
public void testParse() {
assertEquals(Quantities.getQuantity(0.234, CENTI(METRE)),
assertEquals(Quantities.getQuantity(BigDecimal.valueOf(0.234), CENTI(METRE)),
AbstractQuantity.parse("0.234 cm"));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public void quantityMixedTest() {
}

@Test
public void testParseNoUnit() {
public void parseNoUnitTest() {
assertThrows(IllegalArgumentException.class, () -> {
@SuppressWarnings({ "unused" })
Quantity<?> result = Quantities.getQuantity("170").asType(Dimensionless.class);
Expand Down

0 comments on commit 4528026

Please sign in to comment.