1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.flightfeather.obd.socket
 
import org.junit.Test
 
import org.junit.Assert.*
 
/**
 * @author riku
 * Date: 2019/9/16
 */
class MessageManagerTest {
 
    private val messageManager = MessageManager()
 
    @Test
    fun bccCheck() {
        val s = "23 23 2 31 37 36 39 31 35 33 31 39 30 39 31 32 30 30 30 36 1 1 0 42 13 9 f 12 34 8 2 0 8b 1c 0 d8 0 0 12 d8 9 6c 0 c8 0 b4 0 0 66 0 0 0 0 0 0 73 0 0 0 b9 4 32 0 2e d8 c4 0 0 0 0 80 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 f6"
        println(messageManager.bccCheck(s))
    }
}