add OSC encode/decode test with arg

This commit is contained in:
Joel Wetzell
2026-03-02 20:59:29 -06:00
parent fdd4b341cb
commit 8f769f0a4a
2 changed files with 26 additions and 0 deletions

View File

@@ -43,6 +43,19 @@ func TestGoodOSCMessageDecode(t *testing.T) {
Args: []osc.OSCArg{},
},
},
{
name: "basic OSC message with argument",
payload: []byte{47, 116, 101, 115, 116, 0, 0, 0, 44, 105, 0, 0, 0, 0, 0, 42},
expected: osc.OSCMessage{
Address: "/test",
Args: []osc.OSCArg{
{
Type: "i",
Value: int32(42),
},
},
},
},
}
for _, test := range tests {