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

seq: rename "--widths" to "--equal-width"

for compatibility with GNU seq
This commit is contained in:
Daniel Hofstetter 2023-06-26 16:21:59 +02:00
parent 9149409065
commit c05dbfa3b4
2 changed files with 14 additions and 11 deletions

View file

@ -208,10 +208,13 @@ fn test_separator_and_terminator() {
#[test]
fn test_equalize_widths() {
new_ucmd!()
.args(&["-w", "5", "10"])
.run()
.stdout_is("05\n06\n07\n08\n09\n10\n");
let args = ["-w", "--equal-width"];
for arg in args {
new_ucmd!()
.args(&[arg, "5", "10"])
.run()
.stdout_is("05\n06\n07\n08\n09\n10\n");
}
}
#[test]