Rename test file

This commit is contained in:
David Peter committed 2023-03-15 09:33:49 +01:00
1 parent d32b90ee5c
commit 09af0517bc
3 files changed
+4 -6

No files matched your search

+1
View File
@@ -0,0 +1 @@
This text is part of a file
-1
View File
@@ -1 +0,0 @@
This data is passed to the command via stdin
+3 -5
View File
@@ -216,17 +216,15 @@ fn runs_commands_using_user_defined_shell() {
}
#[test]
fn can_pass_file_data_to_command_via_stdin() {
fn can_pass_input_to_command_from_a_file() {
hyperfine()
.arg("--runs=1")
.arg("--input=example_stdin_data")
.arg("--input=example_input_file.txt")
.arg("--show-output")
.arg("cat")
.assert()
.success()
.stdout(predicate::str::contains(
"This data is passed to the command via stdin",
));
.stdout(predicate::str::contains("This text is part of a file"));
}
#[test]