add support for osc infinitum type

This commit is contained in:
2024-10-13 21:16:22 -05:00
parent f9f763d6c4
commit 7601cfb096
2 changed files with 14 additions and 1 deletions
@@ -48,6 +48,11 @@ const tests = [
bytes: new Uint8Array([47, 104, 101, 108, 108, 111, 0, 0, 44, 78, 0, 0]),
expected: { address: '/hello', args: [{ type: 'N', value: null }] },
},
{
description: 'simple address Inifinitum arg',
bytes: new Uint8Array([47, 104, 101, 108, 108, 111, 0, 0, 44, 73, 0, 0]),
expected: { address: '/hello', args: [{ type: 'I', value: Number.MAX_SAFE_INTEGER }] },
},
{
description: 'osc 1.0 spec example 1',
bytes: new Uint8Array([