mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Fix newline when only dirs in base directory, and test
This commit is contained in:
parent
421330d07a
commit
30b2425541
2 changed files with 26 additions and 13 deletions
|
@ -107,6 +107,19 @@ fn test_ls_io_errors() {
|
|||
.stdout_contains("some-dir4");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_ls_only_dirs_formatting() {
|
||||
let scene = TestScenario::new(util_name!());
|
||||
let at = &scene.fixtures;
|
||||
at.mkdir("some-dir1");
|
||||
at.mkdir("some-dir2");
|
||||
at.mkdir("some-dir3");
|
||||
|
||||
scene.ucmd().arg("-1").arg("-R").succeeds().stdout_only(
|
||||
".:\nsome-dir1\nsome-dir2\nsome-dir3\n\n./some-dir1:\n\n./some-dir2:\n\n./some-dir3:\n",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_ls_walk_glob() {
|
||||
let scene = TestScenario::new(util_name!());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue