aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/helper/CrcTest.java
blob: 46e7dfc797dc19375591884c798e72f4fd3b6b1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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));

    }

}