Registry / testing / assert

assert

JSON →
library0.7.5rscratesunverified

Provides assertions for testing in Rust.

# Cargo.toml [dependencies] assert = "0.7.5"
INSTALL
IMPORT
SIG · ASSERT
A
assert
testingrustv0.7.5
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 assert::assert;

Use the assert macro to verify conditions.

use assert::assert; fn main() { assert!(2 + 2 == 4); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.7.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
20
OpenAI (training)
1
Resources
assert — cargo add assert · libregistry