Skip to main content

assert_buffer_eq

Function assert_buffer_eq 

Source
pub fn assert_buffer_eq<S: AsRef<str>>(buffer: &Buffer, expected: &[S])
Expand description

Asserts buffer’s visible text matches expected row-by-row after trimming trailing spaces, panicking on the first mismatched line with the full buffer dumped.