From 595ca47c63372fa27f1df9a0ffcf6d4d239031f7 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 11 Oct 2026 18:35:54 +0200 Subject: [PATCH] cultnet-rs tests: a 15-slot record grows to array16 in the payload test This commit builds; the previous commit's test panicked on the header. Co-Authored-By: Claude Sonnet 5.5 --- packages/cultnet-rs/tests/payload_depth.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/cultnet-rs/tests/payload_depth.rs b/packages/cultnet-rs/tests/payload_depth.rs index 260b6799..d810e2de 100644 --- a/packages/cultnet-rs/tests/payload_depth.rs +++ b/packages/cultnet-rs/tests/payload_depth.rs @@ -116,6 +116,7 @@ fn add_unknown_entry(mut map: Vec, nested: &[u8]) -> Vec { fn add_trailing_slot(mut array: Vec, nested: &[u8]) -> Vec { match array[0] { header @ 0x90..=0x9e => array[0] = header + 1, + 0x9f => array.splice(0..1, [0xdc, 0x00, 0x10]).for_each(drop), 0xdc => { let count = u16::from_be_bytes([array[1], array[2]]) + 1; array[1..3].copy_from_slice(&count.to_be_bytes());