From c2ecf80df96f9782ef716d01678ed33f886a6480 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 1 Oct 2015 15:04:06 +1300 Subject: Fix Luhn checksum calculation --- test/org/traccar/helper/CrcTest.java | 1 + 1 file changed, 1 insertion(+) (limited to 'test/org/traccar/helper') 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)); } -- cgit v1.2.3