mirror of
https://github.com/jwetzell/osc-go.git
synced 2026-08-11 01:53:38 +00:00
add test for bundle with bad contents
This commit is contained in:
+13
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user