Module expectest::prelude [] [src]

A module contains reexport of all useful types and functions.

Reexports

pub use core::{Matcher};

Structs

ActualValue

Wrapps an actual value and a location in a source code.

BeCloseTo

A matcher for be_close_to assertions for float numbers.

BeErr

A matcher for be_err assertions for Result<T, E> type.

BeOk

A matcher for be_ok assertions for Result<T, E> type.

BeSome

A matcher for be_some assertions for Option<T> types.

Functions

be_close_to

Returns new BeCloseTo matcher with default delta equal to 0.001.

be_empty

Returns new BeEmpty matcher.

be_equal_to

Returns new BeEqualTo matcher.

be_err

Returns new BeErr matcher.

be_false

Returns new BeFalse matcher.

be_greater_or_equal_to

Returns new PartialOrder (greater or equal to) matcher.

be_greater_than
be_less_or_equal_to

Returns new PartialOrder (less or equal to) matcher.

be_less_than

Returns new PartialOrder (less than) matcher.

be_none

Returns new BeNone matcher.

be_ok

Returns new BeOk matcher.

be_some

Returns new BeSome matcher.

be_true

Returns new BeTrue matcher.

expect

A function that intended to replace an expect! macro if desired.