Skip to content

Commit

Permalink
Add test for issue #138
Browse files Browse the repository at this point in the history
  • Loading branch information
ktuukkan committed Feb 10, 2023
1 parent da775b2 commit 43e732f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ public void getPositionAccuracy() throws Exception {
assertFalse(msg.isAccurate());
}

@Test
public void getPositionAccuracyIssue138() throws Exception {
// !AIVDM,1,1,,A,15S0t`001TlGn>TNurwroHgD05;H,0*21
final Sixbit sb = new Sixbit("15S0t`001TlGn>TNurwroHgD05;H", 0);
final AISPositionReport report = new AISPositionReportParser(sb);
assertTrue(report.isAccurate());
}

@Test
public void getLongitudeInDegrees() throws Exception {
assertEquals(11.8329767, msg.getLongitudeInDegrees(), 0.0000001);
Expand Down

0 comments on commit 43e732f

Please sign in to comment.