A Matcher Library for Rust
Cargo.toml
add expector=0.1.0
cargo build
extern crate expector
use expector::prelude::*
Example:
let a = 5;
let b = 3;
expect(a).to(eq(b));
//panic "Expector match failed"
expectation
: a target and a matcherexpector
: structs and traits for expectationsexpector::prelude
: user facing API for expector crateexpector::matchers
: structs and traits for matchersexpector::matchers::prelude
: user facing API for matchers,expector::prelude
This is a crate built in and for Rust projects. to use this project, you'll need to install rust. rustup is the preferred way to install Rust.
cd expector
cargo build