mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
ls: Document a bit tests/ls/stat-dtype.sh
This commit is contained in:
parent
f76b53d969
commit
94972d45c7
2 changed files with 18 additions and 4 deletions
|
@ -2395,10 +2395,10 @@ fn display_grid(
|
||||||
writeln!(out)?;
|
writeln!(out)?;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
let mut grid = Grid::new(GridOptions {
|
// To match gnu/tests/ls/stat-dtype.sh
|
||||||
filling: Filling::Spaces(2),
|
// we might want to have Text("\t".to_string());
|
||||||
direction,
|
let filling = Filling::Spaces(2);
|
||||||
});
|
let mut grid = Grid::new(GridOptions { filling, direction });
|
||||||
|
|
||||||
for name in names {
|
for name in names {
|
||||||
grid.add(name);
|
grid.add(name);
|
||||||
|
|
|
@ -3678,3 +3678,17 @@ fn test_ls_dired_complex() {
|
||||||
println!("Extracted filenames: {:?}", filenames);
|
println!("Extracted filenames: {:?}", filenames);
|
||||||
assert_eq!(filenames, vec!["a1", "a22", "a333", "a4444", "d"]);
|
assert_eq!(filenames, vec!["a1", "a22", "a333", "a4444", "d"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[ignore = "issue #5396"]
|
||||||
|
#[test]
|
||||||
|
fn test_ls_tabsize_cf() {
|
||||||
|
let (at, mut ucmd) = at_and_ucmd!();
|
||||||
|
|
||||||
|
at.mkdir("e");
|
||||||
|
at.mkdir("e/a2345");
|
||||||
|
at.mkdir("e/b");
|
||||||
|
|
||||||
|
ucmd.args(&["-CF", "e"])
|
||||||
|
.succeeds()
|
||||||
|
.stdout_is("a2345/\tb/\n");
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue