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:
parent
54d5f0adac
commit
3ded0c688c
1 changed files with 8 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue