mirror of
https://github.com/jwetzell/artnet-go.git
synced 2026-08-31 19:38:58 +00:00
fill out tod control test from wireshark dissector
This commit is contained in:
+7
-3
@@ -15,9 +15,13 @@ func TestGoodArtTodControlUnmarshal(t *testing.T) {
|
||||
Expected *artnet.ArtTodControl
|
||||
}{
|
||||
{
|
||||
Name: "ACT Packet 1",
|
||||
Data: []byte{0x41, 0x72, 0x74, 0x2d, 0x4e, 0x65, 0x74, 0x00, 0x00, 0x82, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00},
|
||||
Expected: &artnet.ArtTodControl{},
|
||||
Name: "ACT Packet 1",
|
||||
Data: []byte{0x41, 0x72, 0x74, 0x2d, 0x4e, 0x65, 0x74, 0x00, 0x00, 0x82, 0x00, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00},
|
||||
Expected: &artnet.ArtTodControl{
|
||||
Net: 0x00,
|
||||
Command: artnet.AtcFlush,
|
||||
Address: 0x00,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user