diff options
author | n4n5 <its.just.n4n5@gmail.com> | 2024-07-02 22:40:06 +0200 |
---|---|---|
committer | n4n5 <its.just.n4n5@gmail.com> | 2024-07-02 22:40:06 +0200 |
commit | e506927f1fb52d336ba2f238ee8861816b1d2ad2 (patch) | |
tree | 3bf25d28139baddd42b41927cceb0477c5388c6a /tests/by-util/test_ls.rs | |
parent | 4183977c93af8f52680468576dedb90cb4a785d8 (diff) |
ls: add test
Diffstat (limited to 'tests/by-util/test_ls.rs')
-rw-r--r-- | tests/by-util/test_ls.rs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/by-util/test_ls.rs b/tests/by-util/test_ls.rs index 4c326c9bc..d9ccf7915 100644 --- a/tests/by-util/test_ls.rs +++ b/tests/by-util/test_ls.rs @@ -2993,6 +2993,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] fn test_ls_ignore_hide() { let scene = TestScenario::new(util_name!()); let at = &scene.fixtures; |