From fb51df9d7574c9f08e04ac7b41d3da6242ecbfae Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 11 Oct 2026 04:39:34 +0200 Subject: [PATCH] Union tests: the undeclared negative key assertion matches the message wording Builds. Co-Authored-By: Claude Opus 5.5 --- packages/cultcache-rs/tests/union_parity.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cultcache-rs/tests/union_parity.rs b/packages/cultcache-rs/tests/union_parity.rs index d121c599..1f0cdf31 100644 --- a/packages/cultcache-rs/tests/union_parity.rs +++ b/packages/cultcache-rs/tests/union_parity.rs @@ -364,7 +364,7 @@ mod arm_keys { fn a_negative_undeclared_key_is_an_unknown_arm_naming_the_key() { for (key, shown) in [(&[0xe0][..], "-32"), (&[0xd0, 0xdf], "-33"), (&[0xd1, 0x80, 0x00], "-32768"), (&[0xd2, 0x80, 0x00, 0x00, 0x01], "-2147483647")] { let text = message(&pair(key)); - assert!(text.contains(&format!("unknown arm key {shown};")), "{text}"); + assert!(text.contains(&format!("unknown arm key {shown} ")), "{text}"); assert!(text.contains("declared keys: -2147483648, -1, 7, 2147483647"), "{text}"); assert!(!text.contains("CA"), "{text}"); }