mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
tests: replace run() with succeeds() or fails()
This commit is contained in:
parent
3844a74c38
commit
df4dfea852
39 changed files with 434 additions and 498 deletions
|
@ -35,7 +35,7 @@ fn test_stdbuf_unbuffered_stdout() {
|
|||
new_ucmd!()
|
||||
.args(&["-o0", "head"])
|
||||
.pipe_in("The quick brown fox jumps over the lazy dog.")
|
||||
.run()
|
||||
.succeeds()
|
||||
.stdout_is("The quick brown fox jumps over the lazy dog.");
|
||||
}
|
||||
|
||||
|
@ -45,7 +45,7 @@ fn test_stdbuf_line_buffered_stdout() {
|
|||
new_ucmd!()
|
||||
.args(&["-oL", "head"])
|
||||
.pipe_in("The quick brown fox jumps over the lazy dog.")
|
||||
.run()
|
||||
.succeeds()
|
||||
.stdout_is("The quick brown fox jumps over the lazy dog.");
|
||||
}
|
||||
|
||||
|
@ -66,7 +66,7 @@ fn test_stdbuf_trailing_var_arg() {
|
|||
new_ucmd!()
|
||||
.args(&["-i", "1024", "tail", "-1"])
|
||||
.pipe_in("The quick brown fox\njumps over the lazy dog.")
|
||||
.run()
|
||||
.succeeds()
|
||||
.stdout_is("jumps over the lazy dog.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue