mirror of
https://github.com/nushell/nushell
synced 2024-11-15 01:17:07 +00:00
Added test for ls -a
(#2582)
This commit is contained in:
parent
a508e15efe
commit
332e12ded0
1 changed files with 24 additions and 0 deletions
|
@ -252,6 +252,30 @@ fn lists_all_hidden_files_when_glob_does_not_contain_dot() {
|
|||
})
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn lists_files_including_starting_with_dot() {
|
||||
Playground::setup("ls_test_9", |dirs, sandbox| {
|
||||
sandbox.with_files(vec![
|
||||
EmptyFile("yehuda.txt"),
|
||||
EmptyFile("jonathan.txt"),
|
||||
EmptyFile("andres.txt"),
|
||||
EmptyFile(".hidden1.txt"),
|
||||
EmptyFile(".hidden2.txt"),
|
||||
]);
|
||||
|
||||
let actual = nu!(
|
||||
cwd: dirs.test(), pipeline(
|
||||
r#"
|
||||
ls -a
|
||||
| count
|
||||
| echo $it
|
||||
"#
|
||||
));
|
||||
|
||||
assert_eq!(actual.out, "5");
|
||||
})
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn list_all_columns() {
|
||||
Playground::setup(
|
||||
|
|
Loading…
Reference in a new issue