cultcache-ts tests: a stamp followed by bytes that are not UTF-8 is a stamp, as a read judges it
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1a3780621e
commit
8aac0d0b27
1 changed files with 0 additions and 2 deletions
|
|
@ -1573,8 +1573,6 @@ test("bytes with no readable store stamp are not refused", () => {
|
|||
"str8 cut before its length": [0x91, 0xd9],
|
||||
"str16 cut before its length": [0x91, 0xda, 0x00],
|
||||
"str32 cut before its length": [0x91, 0xdb, 0x00, 0x00, 0x00],
|
||||
"str8 header not utf-8": [0x91, 0xd9, 19, ...stamp, 0xff],
|
||||
"fixstr header not utf-8": [0x91, 0xb3, ...stamp, 0xff],
|
||||
};
|
||||
for (const [name, bytes] of Object.entries(cases)) {
|
||||
assert.equal(headerRefused(new Uint8Array(bytes)), false, name);
|
||||
|
|
|
|||
Loading…
Reference in a new issue