From eb539dd3199566145962a2ce03da79a9f2bda83a Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Mon, 13 Apr 2026 22:41:43 -0500 Subject: [PATCH] add test for bundle with bad contents --- bundle_test.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/bundle_test.go b/bundle_test.go index d190d21..f50b75f 100644 --- a/bundle_test.go +++ b/bundle_test.go @@ -51,7 +51,19 @@ func TestBadOSCBundleEncoding(t *testing.T) { name string bundle *OSCBundle errorString string - }{} + }{ + { + name: "bundle contains message with bad address", + bundle: &OSCBundle{ + TimeTag: OSCTimeTag{ + seconds: 32, + fractionalSeconds: 0, + }, + Contents: []OSCPacket{&OSCMessage{Address: "hello", Args: []OSCArg{}}}, + }, + errorString: "OSC Message address must start with /", + }, + } for _, testCase := range testCases { t.Run(testCase.name, func(t *testing.T) {