mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 02:35:37 +01:00
- Functions and macros declared inside a test no longer count as its assertions or calls; a call to one still counts as a helper call. - `should_panic` exempts a test only as an applied attribute: `#[should_panic]`, or inside `#[cfg_attr(test, ...)]`. - `only-weak` strips parentheses around the whole condition, so `assert!((x.is_ok()))` is classified like `assert!(x.is_ok())`. - `#[ cfg(test)]` and attributes with comments between `#`, `[` and `cfg` mark test code like the compact form.