go-vsoa/protocol/serv_info_test.go
2023-10-11 11:14:41 +08:00

21 lines
369 B
Go

package protocol
import (
"testing"
)
func TestRes(t *testing.T) {
m := &ServInfoResParam{
Info: "TestRes",
}
res := NewMessage()
m.NewGoodMessage(ServInfoResAsJSON, res, 0x10)
if GetClientUid(res.Data) != 0x10 {
t.Fatalf("Client Uid should be 0x10, we got %x", GetClientUid(res.Data))
} else {
t.Log("Pass ServInfo Res test")
}
}