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
|
@ -13,7 +13,7 @@ fn test_invalid_arg() {
|
|||
fn test_default_80_column_wrap() {
|
||||
new_ucmd!()
|
||||
.arg("lorem_ipsum.txt")
|
||||
.run()
|
||||
.succeeds()
|
||||
.stdout_is_fixture("lorem_ipsum_80_column.expected");
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,7 @@ fn test_default_80_column_wrap() {
|
|||
fn test_40_column_hard_cutoff() {
|
||||
new_ucmd!()
|
||||
.args(&["-w", "40", "lorem_ipsum.txt"])
|
||||
.run()
|
||||
.succeeds()
|
||||
.stdout_is_fixture("lorem_ipsum_40_column_hard.expected");
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@ fn test_40_column_hard_cutoff() {
|
|||
fn test_40_column_word_boundary() {
|
||||
new_ucmd!()
|
||||
.args(&["-s", "-w", "40", "lorem_ipsum.txt"])
|
||||
.run()
|
||||
.succeeds()
|
||||
.stdout_is_fixture("lorem_ipsum_40_column_word.expected");
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ fn test_40_column_word_boundary() {
|
|||
fn test_default_wrap_with_newlines() {
|
||||
new_ucmd!()
|
||||
.arg("lorem_ipsum_new_line.txt")
|
||||
.run()
|
||||
.succeeds()
|
||||
.stdout_is_fixture("lorem_ipsum_new_line_80_column.expected");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue