upgrade osc library and switch to pointers

This commit is contained in:
Joel Wetzell
2026-03-02 21:17:49 -06:00
parent 5cb2f845a1
commit a275cd2b78
6 changed files with 19 additions and 13 deletions

View File

@@ -37,14 +37,14 @@ func TestGoodOSCMessageEncode(t *testing.T) {
}{
{
name: "basic OSC message",
payload: osc.OSCMessage{
payload: &osc.OSCMessage{
Address: "/test",
},
expected: []byte{47, 116, 101, 115, 116, 0, 0, 0, 44, 0, 0, 0},
},
{
name: "basic OSC message with argument",
payload: osc.OSCMessage{
payload: &osc.OSCMessage{
Address: "/test",
Args: []osc.OSCArg{
{
@@ -86,7 +86,7 @@ func TestBadOSCMessageEncode(t *testing.T) {
{
name: "non-osc message input",
payload: "test",
errorString: "osc.message.encode processor only accepts an OSCMessage",
errorString: "osc.message.encode processor only accepts an *OSCMessage",
},
}