aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/helper/ChecksumTest.java
blob: ad112b94016508d52749fab8bfc4bfe990c11af3 (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 ChecksumTest {
    
    @Test
    public void testLuhnChecksum() {

        Assert.assertEquals(7, Checksum.luhn(12345678901234L));
        Assert.assertEquals(0, Checksum.luhn(63070019470771L));

    }

}