Fix(lib): Correctly get the filepaths
- Use std::string::String instead of &str
This commit is contained in:
@@ -64,11 +64,7 @@ fn run(args: &[&str], expected_file: &str) -> TestResult {
|
||||
}
|
||||
|
||||
// --------------------------------------------------
|
||||
fn run_stdin(
|
||||
input_file: &str,
|
||||
args: &[&str],
|
||||
expected_file: &str,
|
||||
) -> TestResult {
|
||||
fn run_stdin(input_file: &str, args: &[&str], expected_file: &str) -> TestResult {
|
||||
let input = fs::read_to_string(input_file)?;
|
||||
let expected = fs::read_to_string(expected_file)?;
|
||||
Command::cargo_bin(PRG)?
|
||||
|
||||
Reference in New Issue
Block a user