Registry / testing / expectest

expectest

JSON →
library0.12.0rscratesunverified

Crate provides matchers and matcher functions for unit testing.

# Cargo.toml [dependencies] expectest = "0.12.0"
INSTALL
IMPORT
SIG · EXPECTEST
E
expectest
testingrustv0.12.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.

expect
use expectest::expect;

Use expectest matchers to assert equality.

use expectest::prelude::*; fn main() { expect!(5).to(be_equal_to(5)); println!("Test passed!"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.12.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Resources
expectest — cargo add expectest · libregistry