Struct expectest::core::ActualValue [] [src]

pub struct ActualValue<A> { /* fields omitted */ }

Represent an actual value and optional location of a test case in a source code.

Methods

impl<A> ActualValue<A>
[src]

Creates a new instance of ActualValue using value.

Also to create a new instance you can use expect function or expect! macro. Macro is better because it can save location of a test case in a source code.

Sets a new SourceLocation.

Performs assertion matching using matcher. Returns a new instance of TestResult.

Performs negation matching using matcher. Returns a new instance of TestResult.

Performs negation matching using matcher. Returns a new instance of TestResult.

Trait Implementations

impl<A: Debug> Debug for ActualValue<A>
[src]

Formats the value using the given formatter.