Function loggy::assert_writes

source ·
pub fn assert_writes<Code: FnOnce(&mut dyn IoWrite)>(
    expected_string: &str,
    code: Code
)
Expand description

Check that some code writes the expected results.

TODO: This crate isn’t really the best place for this.

Panics

If the code does not write the expected text.