Skip to content

Commit

Permalink
fmt: change test to ignore and fix test output
Browse files Browse the repository at this point in the history
- fix test to get same result as GNU fmt
  • Loading branch information
Bluelief committed Aug 14, 2023
1 parent 946e1bb commit a7ab660
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/by-util/test_fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,14 @@ fn test_fmt_width_too_big() {
}
}

#[ignore]
#[test]
fn test_fmt_goal() {
for param in ["-g", "--goal"] {
new_ucmd!()
.args(&["one-word-per-line.txt", param, "7"])
.succeeds()
.stdout_is("this is\na file\nwith one\nword per\nline\n");
.stdout_is("this is a\nfile with one\nword per line\n");
}
}

Expand Down

0 comments on commit a7ab660

Please sign in to comment.