aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2014-01-31 23:01:13 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2014-01-31 23:01:13 +1300
commit33a5306bb25af9c6b95858c82bed0c4deacbc537 (patch)
treefc7e7e622a2b8d7df5727013ac3e0dec39d91261 /test/org/traccar/protocol/MeitrackProtocolDecoderTest.java
parentce8154726e398ca47b3d3ea214ced111c0146769 (diff)
downloadtrackermap-server-33a5306bb25af9c6b95858c82bed0c4deacbc537.tar.gz
trackermap-server-33a5306bb25af9c6b95858c82bed0c4deacbc537.tar.bz2
trackermap-server-33a5306bb25af9c6b95858c82bed0c4deacbc537.zip
Handle negative altitude (fix #535)
Diffstat (limited to 'test/org/traccar/protocol/MeitrackProtocolDecoderTest.java')
-rw-r--r--test/org/traccar/protocol/MeitrackProtocolDecoderTest.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java b/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java
index 6d72ca2da..e59c2ad98 100644
--- a/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/MeitrackProtocolDecoderTest.java
@@ -14,6 +14,9 @@ public class MeitrackProtocolDecoderTest {
verify(decoder.decode(null, null,
"$$X138,862170010187175,AAA,35,-29.960365,-51.655455,130507201625,A,8,9,0,107,0.9,7,169322,126582,724|6|0547|132B,0000,0009|000A||0278|0000,*BE"));
+
+ verify(decoder.decode(null, null,
+ "$$X138,862170010187175,AAA,35,-29.960365,-51.655455,130507201625,A,8,9,0,107,0.9,-7,169322,126582,724|6|0547|132B,0000,0009|000A||0278|0000,*BE"));
verify(decoder.decode(null, null,
"$$]138,012896000475498,AAA,35,-6.138255,106.910545,121205074600,A,5,18,0,0,0,49,3800,24826,510|10|0081|4F4F,0000,0011|0012|0010|0963|0000,,*94"));