mirror of
https://github.com/jwetzell/artnet-go.git
synced 2026-08-19 05:43:57 +00:00
just use marshal methods directly
This commit is contained in:
+3
-1
@@ -31,7 +31,9 @@ func TestGoodArtTimeCode(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
got, err := artnet.NewArtTimeCode(test.Data)
|
||||
got := artnet.ArtTimeCode{}
|
||||
|
||||
err := got.UnmarshalBinary(test.Data)
|
||||
|
||||
if err != nil {
|
||||
t.Fatalf("failed to decode ArtTimeCode: %s", err)
|
||||
|
||||
Reference in New Issue
Block a user