Skip to main content

expect_ref

Function expect_ref 

Source
pub fn expect_ref<T: Debug>(value: &T) -> RootExpectations<'_, T>
Expand description

Create expectations for a reference to a value. Used as an entrypoint for fluently building expectations

use rxpect::expect_ref;
use rxpect::expectations::EqualityExpectations;

expect_ref(&1).to_equal(1);