Skip to content

Commit

Permalink
fix MessageType14 encoding test (#98)
Browse files Browse the repository at this point in the history
Test is fixed to meet introduced variable_length field encoding
  • Loading branch information
luthir authored Dec 19, 2022
1 parent 42fe43b commit a7337b2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/test_encode.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,11 +660,7 @@ def test_encode_type_15():
def test_encode_type_14():
data = {'mmsi': '351809000', 'repeat': 0, 'text': 'RCVD YR TEST MSG', 'type': 14}
actual = encode_dict(data)
expected = [
'!AIVDO,3,1,0,A,>5?Per18=HB1U:1@E=B0m<L0000000000000000000000000000000000000,0*53',
'!AIVDO,3,2,0,A,000000000000000000000000000000000000000000000000000000000000,0*15',
'!AIVDO,3,3,0,A,000000000000000000000000000000000000000000000000,2*16'
]
expected = ['!AIVDO,1,1,,A,>5?Per18=HB1U:1@E=B0m<L,2*53']

assert expected == actual

Expand Down

0 comments on commit a7337b2

Please sign in to comment.