Registry / testing / assert2

assert2

JSON →
library0.4.0rscratesunverified

Improved assert! and check! macros with diff output, inspired by Catch2.

# Cargo.toml [dependencies] assert2 = "0.4.0"
INSTALL
IMPORT
SIG · ASSERT2
A
assert2
testingrustv0.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

assert
use assert2::assert;

Uses the assert! macro from assert2 to check a condition.

use assert2::assert; fn main() { let x = 5; assert!(x == 5, "x should be 5"); println!("Assertion passed"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
22
OpenAI (training)
2
Resources
assert2 — cargo add assert2 · libregistry