Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(profiles): report offending id on colon assertion failure

Steven Enamakelc512e0b91da4
diff --git a/crates/openhuman-core/src/profiles/surface_proptest_tests.rs b/crates/openhuman-core/src/profiles/surface_proptest_tests.rs
index 5b00ddd5c5..c32e98762d 100644
--- a/crates/openhuman-core/src/profiles/surface_proptest_tests.rs
+++ b/crates/openhuman-core/src/profiles/surface_proptest_tests.rs
@@ -198,7 +198,8 @@ proptest! {
prop_assert!(!folded.starts_with(prefix), "{:?}", id);
}
prop_assert!(id.is_ascii());
- prop_assert!(!id.contains([':', '\u{FF1A}', '\u{A789}', '\u{2236}']));
+ let colons = [':', '\u{FF1A}', '\u{A789}', '\u{2236}'];
+ prop_assert!(!id.contains(colons), "{:?}", id);
}
}