git-subtree-dir: ts git-subtree-mainline: 92528599badd9da7f5b10d64f10186a1646bb520 git-subtree-split: 7530d353fdefcc59d83c3c8ebea0a147dcbab234
13 lines
207 B
Go
13 lines
207 B
Go
package ts
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestChecksum(t *testing.T) {
|
|
b := []byte("hello world")
|
|
b = append(b, []byte{0xbb, 0x08, 0xec, 0x87}...)
|
|
crc := updateIeeeCrc32(0xffffffff, b)
|
|
t.Logf("%x", crc)
|
|
}
|