From 86a0f891f20d6ec9912c89ca5973dec80ae6122d Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 12 Oct 2026 07:35:54 +0200 Subject: [PATCH] thing-contract test: pin Count::get on a nonzero value (cargo-mutants survivor); drop the self-defeating old-prefix assertion Builds. Co-Authored-By: Claude Sonnet 5.5 --- crates/thing-contract/tests/result.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/thing-contract/tests/result.rs b/crates/thing-contract/tests/result.rs index 4c3b9b6..bed0312 100644 --- a/crates/thing-contract/tests/result.rs +++ b/crates/thing-contract/tests/result.rs @@ -124,9 +124,6 @@ fn record_keys_injective() { assert_eq!(first, "thing:result:x.1.2"); assert_eq!(second, "thing:result:x.12"); assert_ne!(first, second); - - // Nothing in src spells the old prefix. - assert!(!catalog("p", "c").record_key().starts_with("thing:assets:")); } #[test] @@ -144,6 +141,7 @@ fn domain_newtypes_refuse_out_of_domain() { assert!(Count::new(-1).is_err()); assert!(Count::new(i32::MIN).is_err()); assert_eq!(Count::new(0).unwrap().get(), 0); + assert_eq!(Count::new(7).unwrap().get(), 7); assert!(Segment::new("").is_err()); assert!(Segment::new("a.b").is_err()); assert!(Segment::new(".").is_err());