Thing contract, Rust: slot_arm_bytes pins Slot at arm 13

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-11-27 21:52:14 +01:00
commit 3ded0c688c

View file

@ -443,6 +443,14 @@ fn envelope<T: DatabaseEntry>(key: &str, payload: Vec<u8>) -> CultCacheEnvelope
}
}
#[test]
fn slot_arm_bytes() {
let slot = Node::Slot(SlotNode { param: param("body") });
let bytes = rmp_serde::to_vec(&slot).unwrap();
assert_eq!(bytes, [0x92, 0x0D, 0x91, 0x91, 0xA4, 0x62, 0x6F, 0x64, 0x79]);
assert_eq!(rmp_serde::from_slice::<Node>(&bytes).unwrap(), slot);
}
#[test]
fn goldens_match() {
let mut names = BTreeSet::new();