go-teeworlds-protocol/teeworlds_test.go

17 lines
242 B
Go
Raw Normal View History

2024-06-02 02:58:09 +00:00
package main
2024-06-02 01:41:00 +00:00
import (
"testing"
)
func TestIsCtrlMsg(t *testing.T) {
data := []byte{0x04, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x04}
got := isCtrlMsg(data)
want := true
if got != want {
t.Errorf("got %t, wanted %t", got, want)
}
}