cultcache-ts tests: an empty array before a newer stamp is not a stamp

Hand mutant T4 (lead >= 0x90) survived; the empty-array case now carries a newer stamp after it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-23 02:01:05 +02:00
commit 8619883b96

View file

@ -2130,7 +2130,7 @@ test("bytes with no readable store stamp are not refused", () => {
const stamp = [...Buffer.from("cultcache.store.v4", "utf8")];
const cases: Record<string, number[]> = {
empty: [],
"empty array": [0x90],
"empty array": [0x90, 0xb2, ...stamp],
"empty array16": [0xdc, 0x00, 0x00, 0xb2, ...stamp],
"empty array32": [0xdd, 0x00, 0x00, 0x00, 0x00, 0xb2, ...stamp],
"array16 cut before its count": [0xdc, 0x00],