1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

tests: replace run() with succeeds() or fails()

This commit is contained in:
Daniel Hofstetter 2025-03-09 16:53:56 +01:00
parent 3844a74c38
commit df4dfea852
39 changed files with 434 additions and 498 deletions

View file

@ -265,7 +265,7 @@ fn test_with_stdin() {
scenario
.pipe_in_fixture("stdin.log")
.args(&["--pages=1:2", "-n", "-"])
.run()
.succeeds()
.stdout_is_templated_fixture_any(
expected_file_path,
&valid_last_modified_template_vars(start),
@ -452,7 +452,7 @@ fn test_with_join_lines_option() {
let start = Utc::now();
scenario
.args(&["+1:2", "-J", "-m", test_file_1, test_file_2])
.run()
.succeeds()
.stdout_is_templated_fixture_any(
expected_file_path,
&valid_last_modified_template_vars(start),