pub fn assert_no_changes<T: PartialEq + Debug>(
expression: impl FnMut() -> T,
block: impl FnOnce(),
)Expand description
Asserts that block leaves what expression returns unchanged (Rails’ assert_no_changes).
§Examples
ocre::testing::assert_no_changes(|| "same", || ());