redis-shake工具
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
157 B

package utils
import "testing"
func TestCrc16(t *testing.T) {
ret := Crc16("123456789")
if ret != 0x31c3 {
t.Errorf("Crc16(123456789) = %x", ret)
}
}