fn run(args: &[&str], file_name: &str) -> Result<(), Box<dyn std::error::Error>> {
    let expected = fs::read_to_string(file_name)?;
    Command::cargo_bin("rust-echo")?
        .args(args)
        .assert()
        .success()
        .stdout(expected);
    Ok(())
}
/// Compare contents of test file with `stdout`
Compare contents of test file with `stdout`
Compare contents of test file with ` stdout `
fn run(args: &[&str], file_name: &str) -> Result<(), Box<dyn std::error::Error>> {
    let expected = fs::read_to_string(file_name)?;
    Command::cargo_bin("rust-echo")?
        .args(args)
        .assert()
        .success()
        .stdout(expected);
    Ok(())
}
fn run ( args : & [ & str ] , file_name : & str ) -> Result < ( ) , Box < dyn std :: error :: Error > > { let expected = fs :: read_to_string ( file_name ) ? ; Command :: cargo_bin ( " " ) ? . args ( args ) . assert ( ) . success ( ) . stdout ( expected ) ; Ok ( ( ) ) }
Compare contents of test file with `stdout`
Compare contents of test file with ` stdout `
args
&[&str]
file_name
&str
args
&[&str]
file_name
&str