mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
ls: add test
This commit is contained in:
parent
4183977c93
commit
e506927f1f
1 changed files with 29 additions and 0 deletions
|
@ -2992,6 +2992,35 @@ fn test_ls_align_unquoted() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_ls_align_unquoted_multiline() {
|
||||||
|
let scene = TestScenario::new(util_name!());
|
||||||
|
let at = &scene.fixtures;
|
||||||
|
|
||||||
|
at.touch("one");
|
||||||
|
at.touch("two");
|
||||||
|
at.touch("three_long");
|
||||||
|
at.touch("four_long");
|
||||||
|
at.touch("five");
|
||||||
|
at.touch("s ix");
|
||||||
|
at.touch("s even");
|
||||||
|
at.touch("eight_long_long");
|
||||||
|
at.touch("nine");
|
||||||
|
at.touch("ten");
|
||||||
|
|
||||||
|
// In TTY
|
||||||
|
#[cfg(unix)]
|
||||||
|
scene
|
||||||
|
.ucmd()
|
||||||
|
.arg("--color")
|
||||||
|
.terminal_simulation(true)
|
||||||
|
.succeeds()
|
||||||
|
.stdout_only(concat!(
|
||||||
|
" eight_long_long four_long one 's ix' three_long\r\n",
|
||||||
|
" five nine 's even' ten two\r\n"
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_ls_ignore_hide() {
|
fn test_ls_ignore_hide() {
|
||||||
let scene = TestScenario::new(util_name!());
|
let scene = TestScenario::new(util_name!());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue