more support for ubytearrays

This commit is contained in:
sergeych committed 2023-10-26 10:35:41 +03:00
1 parent b5db8bb8cc
commit 30bf5fefe9
7 files changed
+42 -3

No files matched your search

+16
View File
@@ -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}")
}
}