From 6eb1837b796f51bd2a84d091b706a7ae1d4952a0 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 7 Jul 2015 15:20:48 +1200 Subject: Improve Aplicom id parsing --- test/org/traccar/helper/CrcTest.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/org/traccar/helper/CrcTest.java (limited to 'test') diff --git a/test/org/traccar/helper/CrcTest.java b/test/org/traccar/helper/CrcTest.java new file mode 100644 index 000000000..46e7dfc79 --- /dev/null +++ b/test/org/traccar/helper/CrcTest.java @@ -0,0 +1,15 @@ +package org.traccar.helper; + +import org.junit.Assert; +import org.junit.Test; + +public class CrcTest { + + @Test + public void testLuhnChecksum() { + + Assert.assertEquals(7, Crc.luhnChecksum(12345678901234L)); + + } + +} -- cgit v1.2.3