aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/helper/CrcTest.java
blob: 7bd4a04827cf5c5381888693c8c7ef014b9022b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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));
        Assert.assertEquals(0, Crc.luhnChecksum(63070019470771L));

    }

}