protocol_test.go 480 Bytes
Newer Older
barnettZQG's avatar
barnettZQG committed
1
package protocol
barnettZQG's avatar
barnettZQG committed
2

barnettZQG's avatar
barnettZQG committed
3 4 5 6
import (
	"strconv"
	"testing"
)
barnettZQG's avatar
barnettZQG committed
7 8 9 10 11

func TestCreateTime(t *testing.T) {
	t.Log(createTime())
}

barnettZQG's avatar
barnettZQG committed
12 13 14
func TestCRC32(t *testing.T) {
	t.Log(CRC32(Hextob("F1B000000006000199014C000219100000ED88621203")))
}
barnettZQG's avatar
barnettZQG committed
15
func TestResponseMessage(t *testing.T) {
barnettZQG's avatar
barnettZQG committed
16
	t.Log(BytetoH(ResponseMessage(Hextob("F1B000000006000199014C000219100000ED8862120362D81046"))))
barnettZQG's avatar
barnettZQG committed
17
}
barnettZQG's avatar
barnettZQG committed
18 19 20

func TestCreateCommandMessage(t *testing.T) {
	t.Log(strconv.FormatInt(201, 16))
barnettZQG's avatar
barnettZQG committed
21 22

	t.Log(BytetoH(CreateCommandMessage()))
barnettZQG's avatar
barnettZQG committed
23
}