aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/traccar/protocol
diff options
context:
space:
mode:
authorSanjeewa Vithanage <vithanagevms@gmail.com>2024-01-28 09:28:34 +0200
committerSanjeewa Vithanage <vithanagevms@gmail.com>2024-01-28 09:28:34 +0200
commit2f49889aa496524b298f764e18f8016e74efab87 (patch)
treede9ea5931d0a369e052d46a10d681c921911cd25 /src/test/java/org/traccar/protocol
parent7577626863a370056169386860a3e8805f45663b (diff)
downloadtrackermap-server-2f49889aa496524b298f764e18f8016e74efab87.tar.gz
trackermap-server-2f49889aa496524b298f764e18f8016e74efab87.tar.bz2
trackermap-server-2f49889aa496524b298f764e18f8016e74efab87.zip
fixed with unwanted decimal points ("adc1":12.870000000000001)
Diffstat (limited to 'src/test/java/org/traccar/protocol')
-rw-r--r--src/test/java/org/traccar/protocol/UproProtocolDecoderTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/org/traccar/protocol/UproProtocolDecoderTest.java b/src/test/java/org/traccar/protocol/UproProtocolDecoderTest.java
index ca2944c04..f070c6201 100644
--- a/src/test/java/org/traccar/protocol/UproProtocolDecoderTest.java
+++ b/src/test/java/org/traccar/protocol/UproProtocolDecoderTest.java
@@ -87,6 +87,10 @@ public class UproProtocolDecoderTest extends ProtocolTest {
"*HQ200862312328000001,AD1&A1520441548253003503696640017270124&B0000000000&C00000117&F0000&R2118&N01&V0125&X(J01E0)&K00300&Z000&d01286"),
Position.PREFIX_ADC + 1, 12.86);
+ verifyAttribute(decoder, buffer(
+ "*HQ200862312328000001,BA&A1520461548253003503696640017270124&B0000000000&C00000117&F0000&R2218&N01&V0125&X(J01E0)&K00300&Z000&d01287"),
+ Position.PREFIX_ADC + 1, 12.87);
+
}
}