From d877d26a053de95a2d00a7addc34b241a4f1ac9b Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 11 Oct 2026 22:03:21 +0200 Subject: [PATCH] cultcache-ts test: the slot-nil vector pins a non-ASCII str in a bytes slot as UTF-8 (C#-written) Co-Authored-By: Claude Sonnet 5.5 --- packages/cultcache-ts/test/union-parity.test.ts | 4 ++-- tests/vectors/slot-nil/reads.msgpack | Bin 448 -> 490 bytes 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cultcache-ts/test/union-parity.test.ts b/packages/cultcache-ts/test/union-parity.test.ts index 428b21ac..b025f113 100644 --- a/packages/cultcache-ts/test/union-parity.test.ts +++ b/packages/cultcache-ts/test/union-parity.test.ts @@ -757,7 +757,7 @@ test("slots read and rewrite exactly what the C# reference does for nil, a str i 4: ["l", list(string), () => []], }); const rows = readWire(new Uint8Array(await readFile(join(vectors, "..", "slot-nil", "reads.msgpack")))) as [string, Uint8Array, boolean, Uint8Array][]; - assert.equal(rows.length, 14); + assert.equal(rows.length, 15); let accepted = 0; for (const [name, payload, wasAccepted, rewritten] of rows) { if (wasAccepted) { @@ -767,7 +767,7 @@ test("slots read and rewrite exactly what the C# reference does for nil, a str i assert.throws(() => probe.decode(readWire(payload)), (error: Error) => !error.message.includes(hex(payload).slice(2)), name); } } - assert.equal(accepted, 12); + assert.equal(accepted, 13); }); test("a nil reads as null and writes as nil in every reference slot, and a value slot refuses it", () => { diff --git a/tests/vectors/slot-nil/reads.msgpack b/tests/vectors/slot-nil/reads.msgpack index 9218ac26ece3c75a6c59103a3d661085a7e23233..fd972cb2904540ce78335d8d65aa41286470e765 100644 GIT binary patch delta 52 zcmX@W{EC@z{zS%C>g$p!OHzw