mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
tests/pr: formatting
This commit is contained in:
parent
bb029193e2
commit
d8c8e6774f
1 changed files with 20 additions and 5 deletions
|
@ -266,7 +266,10 @@ fn test_with_stdin() {
|
||||||
.pipe_in_fixture("stdin.log")
|
.pipe_in_fixture("stdin.log")
|
||||||
.args(&["--pages=1:2", "-n", "-"])
|
.args(&["--pages=1:2", "-n", "-"])
|
||||||
.run()
|
.run()
|
||||||
.stdout_is_templated_fixture_any(expected_file_path, &valid_last_modified_template_vars(start));
|
.stdout_is_templated_fixture_any(
|
||||||
|
expected_file_path,
|
||||||
|
&valid_last_modified_template_vars(start),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -344,13 +347,19 @@ fn test_with_mpr() {
|
||||||
new_ucmd!()
|
new_ucmd!()
|
||||||
.args(&["--pages=1:2", "-m", "-n", test_file_path, test_file_path1])
|
.args(&["--pages=1:2", "-m", "-n", test_file_path, test_file_path1])
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_is_templated_fixture_any(expected_test_file_path, &valid_last_modified_template_vars(start));
|
.stdout_is_templated_fixture_any(
|
||||||
|
expected_test_file_path,
|
||||||
|
&valid_last_modified_template_vars(start),
|
||||||
|
);
|
||||||
|
|
||||||
let start = Local::now();
|
let start = Local::now();
|
||||||
new_ucmd!()
|
new_ucmd!()
|
||||||
.args(&["--pages=2:4", "-m", "-n", test_file_path, test_file_path1])
|
.args(&["--pages=2:4", "-m", "-n", test_file_path, test_file_path1])
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_is_templated_fixture_any(expected_test_file_path1, &valid_last_modified_template_vars(start));
|
.stdout_is_templated_fixture_any(
|
||||||
|
expected_test_file_path1,
|
||||||
|
&valid_last_modified_template_vars(start),
|
||||||
|
);
|
||||||
|
|
||||||
let start = Local::now();
|
let start = Local::now();
|
||||||
new_ucmd!()
|
new_ucmd!()
|
||||||
|
@ -365,7 +374,10 @@ fn test_with_mpr() {
|
||||||
test_file_path,
|
test_file_path,
|
||||||
])
|
])
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_is_templated_fixture_any(expected_test_file_path2, &valid_last_modified_template_vars(start));
|
.stdout_is_templated_fixture_any(
|
||||||
|
expected_test_file_path2,
|
||||||
|
&valid_last_modified_template_vars(start),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -461,5 +473,8 @@ fn test_with_join_lines_option() {
|
||||||
scenario
|
scenario
|
||||||
.args(&["+1:2", "-J", "-m", test_file_1, test_file_2])
|
.args(&["+1:2", "-J", "-m", test_file_1, test_file_2])
|
||||||
.run()
|
.run()
|
||||||
.stdout_is_templated_fixture_any(expected_file_path, &valid_last_modified_template_vars(start));
|
.stdout_is_templated_fixture_any(
|
||||||
|
expected_file_path,
|
||||||
|
&valid_last_modified_template_vars(start),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue