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

ls: add test

This commit is contained in:
n4n5 2024-07-02 22:40:06 +02:00
parent 4183977c93
commit e506927f1f
No known key found for this signature in database
GPG key ID: 79414EADC6D4B457

View file

@ -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!());