pub fn assert_contents<P: AsRef<Path>>(path: P, actual: &str)
Expand description

Compare the contents of the file to the string provided

Examples found in repository?
examples/basic.rs (line 7)
5
6
7
8
fn main() {
    let actual = compose();
    assert_contents("examples/lyrics.txt", actual);
}