Skip to content

Commit 48d4d37

Browse files
committed
Check lat / lon within limits
1 parent 2020e84 commit 48d4d37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/aero/t2s/modes/decoder/df/df17/AirbornePositionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public void test_airborne_position_aircraft() throws UnknownDownlinkFormatExcept
4040
AirbornePosition positionB = (AirbornePosition) exSqB;
4141
// We should now have a valid position after receiving both even and odd frames
4242
assertEquals(true, positionB.isPositionAvailable());
43-
assertEquals(Math.round(52.789 * 100), Math.round(positionB.getLat() * 100));
44-
assertEquals(Math.round(-2.405 * 100), Math.round(positionB.getLon() * 100));
43+
assertEquals(52.789, positionB.getLat(), 0.001);
44+
assertEquals(-2.405, positionB.getLon(), 0.001);
4545
}
4646

4747
private DownlinkFormat testMessage(String message) throws UnknownDownlinkFormatException {

0 commit comments

Comments
 (0)