From dc4ec067d4360ddf7e7cf4afdf75bfba0f926577 Mon Sep 17 00:00:00 2001 From: Lapo Luchini Date: Fri, 6 Mar 2026 08:36:22 +0000 Subject: [PATCH] Add test for 2^31-1 to confirm that it was properly decoded by 2.1.2. --- test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test.js b/test.js index 8e980e2..d5f4851 100755 --- a/test.js +++ b/test.js @@ -232,6 +232,7 @@ tests.push(new Tests('Length', function (t) { ['8103', 3, 'Long form length 3'], ['82FFFF', 0xFFFF, 'Long form length 65535'], ['83123456', 0x123456, 'Long form length 1193046'], + ['847FFFFFFF', 0x7FFFFFFF, 'Long form length 2^31-1'], ['84FFFFFFFF', 0xFFFFFFFF, 'Long form length 2^32-1'], ['87FFFFFFFFFFFFFF', 'Exception:\nError: Length over 48 bits not supported at position 0', 'Long form length > 2^48'], ])); -- 2.51.2