Update unit tests
This commit is contained in:
parent
cc61cb9c1a
commit
ba341fc0bb
@ -11,7 +11,7 @@ public class ValueTest {
|
||||
Value v1, v2;
|
||||
|
||||
v1 = new Value(273.15, UnitGroup.UNITS_TEMPERATURE.findApproximate("F"));
|
||||
v2 = new Value(283.15, UnitGroup.UNITS_TEMPERATURE.findApproximate("C"));
|
||||
v2 = new Value(283.153, UnitGroup.UNITS_TEMPERATURE.findApproximate("C"));
|
||||
|
||||
assertTrue(v1.compareTo(v2) > 0);
|
||||
assertTrue(v2.compareTo(v1) < 0);
|
||||
@ -21,7 +21,7 @@ public class ValueTest {
|
||||
v2 = new Value(283.15, UnitGroup.UNITS_TEMPERATURE.findApproximate("K"));
|
||||
assertTrue(v1.compareTo(v2) > 0);
|
||||
assertTrue(v2.compareTo(v1) < 0);
|
||||
assertEquals("283 K", v2.toString());
|
||||
assertEquals("283.15 K", v2.toString());
|
||||
|
||||
v2 = new Value(283.15, UnitGroup.UNITS_TEMPERATURE.findApproximate("F"));
|
||||
assertTrue(v1.compareTo(v2) < 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user