mirror of
https://github.com/jwetzell/osc-go.git
synced 2026-09-01 19:49:02 +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
|
name string
|
||||||
bundle *OSCBundle
|
bundle *OSCBundle
|
||||||
errorString string
|
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 {
|
for _, testCase := range testCases {
|
||||||
t.Run(testCase.name, func(t *testing.T) {
|
t.Run(testCase.name, func(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user