Skip to content

Commit

Permalink
2: Integrate Health with the SPI to demonstrate how to add a new system
Browse files Browse the repository at this point in the history
  • Loading branch information
keilw committed Jan 6, 2021
1 parent 8a94c57 commit fecc16e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions units/src/test/java/si/uom/AngleTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@
public class AngleTest {

@Test
public void testAngleConverter() {
public void testDegreeToRadian() {
Quantity<Angle> sut = Quantities.getQuantity(1, NonSI.DEGREE_ANGLE).to(Units.RADIAN);
assertNotNull(sut);
assertEquals(Units.RADIAN, sut.getUnit());
assertEquals(new BigDecimal("0.0174532925199432957692369076848861280629300682621303282056192814575568"), sut.getValue());
}

@Test
public void testAngleConverterOpposite() {
public void testRadianToDegree() {
Quantity<Angle> sut = Quantities.getQuantity(1d, Units.RADIAN).to(NonSI.DEGREE_ANGLE);
assertNotNull(sut);
assertEquals(NonSI.DEGREE_ANGLE, sut.getUnit());
Expand Down

0 comments on commit fecc16e

Please sign in to comment.