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.

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_false

Returns new BeFalse matcher.

be_greater_or_equal_to

Returns new BeGreaterOrEqualTo matcher.

be_greater_than

Returns new BeGreaterThan matcher.

be_less_or_equal_to

Returns new BeLessOrEqualTo matcher.

be_less_than

Returns new BeLessThan matcher.

be_none

Returns new BeNone 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.