add fail test case

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
pull/4561/head
Andrew Fiddian-Green 2025-01-18 17:56:49 +00:00
parent acae41672d
commit 132f0f74ba
1 changed files with 5 additions and 0 deletions

View File

@ -125,6 +125,11 @@ class QuantityTypeToInvertibleUnitTest {
assertEquals(0.1, v1.doubleValue(), 0.01);
assertEquals(10, v2.doubleValue(), 0.01);
// fail cases
assertNull(v1.toInvertibleUnit(SIUnits.METRE));
assertNull(v2.toInvertibleUnit(SIUnits.METRE));
assertNull(QuantityType.valueOf(5, Units.HERTZ).toInvertibleUnit(SIUnits.METRE));
}
/**