aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-01 15:04:06 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-01 15:04:06 +1300
commitc2ecf80df96f9782ef716d01678ed33f886a6480 (patch)
treefd3debdb195edd49e91072e668371254ff145ff6 /test
parente84f02c3bffda311e86fab584d7c40702b5223be (diff)
downloadtraccar-server-c2ecf80df96f9782ef716d01678ed33f886a6480.tar.gz
traccar-server-c2ecf80df96f9782ef716d01678ed33f886a6480.tar.bz2
traccar-server-c2ecf80df96f9782ef716d01678ed33f886a6480.zip
Fix Luhn checksum calculation
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/helper/CrcTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/org/traccar/helper/CrcTest.java b/test/org/traccar/helper/CrcTest.java
index 46e7dfc79..7bd4a0482 100644
--- a/test/org/traccar/helper/CrcTest.java
+++ b/test/org/traccar/helper/CrcTest.java
@@ -9,6 +9,7 @@ public class CrcTest {
public void testLuhnChecksum() {
Assert.assertEquals(7, Crc.luhnChecksum(12345678901234L));
+ Assert.assertEquals(0, Crc.luhnChecksum(63070019470771L));
}