add support for osc array types

This commit is contained in:
2024-10-14 19:46:49 -05:00
parent 512b2d63c0
commit 5a5a6ab0a5
4 changed files with 63 additions and 7 deletions
@@ -65,6 +65,13 @@ const tests = [
]),
expected: { address: '/hello', args: [{ type: 'd', value: 12.7654763 }] },
},
{
description: 'simple address array arg',
bytes: new Uint8Array([
47, 104, 101, 108, 108, 111, 0, 0, 44, 91, 100, 105, 93, 0, 0, 0, 0x40, 0x29, 0x87, 0xec, 0x82, 0x74, 0xb9, 0xe6, 0, 0, 3, 232
]),
expected: { address: '/hello', args: [[{ type: 'd', value: 12.7654763 }, { type: 'i', value: 1000}]] },
},
{
description: 'osc 1.0 spec example 1',
bytes: new Uint8Array([