more support for ubytearrays
This commit is contained in:
1 parent
b5db8bb8cc
commit
30bf5fefe9
7 files changed
+42
-3
No files matched your search
@@ -0,0 +1,16 @@
|
||||
package bintools
|
||||
|
||||
import net.sergeych.bintools.CRC
|
||||
import net.sergeych.bintools.encodeToHex
|
||||
import kotlin.test.Test
|
||||
|
||||
class CrcTest {
|
||||
@Test
|
||||
fun testVectors() {
|
||||
val x = byteArrayOf(1,2,3,4,5)
|
||||
val crc = CRC.crc8(x)
|
||||
println("->> ${x.toList()}")
|
||||
println("->> ${crc.encodeToHex()}")
|
||||
println("->> ${crc}")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user