aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/org/traccar/helper/CrcTest.java15
1 files changed, 15 insertions, 0 deletions
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));
+
+ }
+
+}