diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-01 15:04:06 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-01 15:04:06 +1300 |
commit | c2ecf80df96f9782ef716d01678ed33f886a6480 (patch) | |
tree | fd3debdb195edd49e91072e668371254ff145ff6 /test/org/traccar/helper | |
parent | e84f02c3bffda311e86fab584d7c40702b5223be (diff) | |
download | traccar-server-c2ecf80df96f9782ef716d01678ed33f886a6480.tar.gz traccar-server-c2ecf80df96f9782ef716d01678ed33f886a6480.tar.bz2 traccar-server-c2ecf80df96f9782ef716d01678ed33f886a6480.zip |
Fix Luhn checksum calculation
Diffstat (limited to 'test/org/traccar/helper')
-rw-r--r-- | test/org/traccar/helper/CrcTest.java | 1 |
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)); } |