From 573402592d6a4669759ed9e0fbada869ead3ac08 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Tue, 15 Sep 2026 10:40:37 +0800 Subject: [PATCH] test(06-12): register blocked multi-byte bigint/int64 expectation (G-06-04-A) --- packages-user/data-common/src/replay/array.test.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages-user/data-common/src/replay/array.test.ts b/packages-user/data-common/src/replay/array.test.ts index b6a4a22..8d1a93f 100644 --- a/packages-user/data-common/src/replay/array.test.ts +++ b/packages-user/data-common/src/replay/array.test.ts @@ -226,6 +226,19 @@ describe('ReplayArray param codec', () => { expect(array.get(0).params).toEqual([2147483648]); }); + // 疑似 bug:多字节 bigint 与超 int32 的 int64 混在同一步时同样失真,详见 06-TEST-FINDINGS.md #06-04-1/#06-04-2,修复两个编码与解码缺陷后取消 skip + it.skip('round-trips a heterogeneous step mixing a multi-byte bigint and an int64 value', () => { + const array = createArray(); + array.add(0, [true, 0x0102030405060708n, 2147483648, 'x']); + + expect(array.get(0).params).toEqual([ + true, + 0x0102030405060708n, + 2147483648, + 'x' + ]); + }); + // 验证短字符串参数使用内联类型 token 并读回一致 it('round-trips a short string with an inline type token', () => { const array = createArray();