mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 16:33:37 +01:00
It ls test setup rewrite. (#1260)
This commit is contained in:
parent
3c01526869
commit
762c798670
@ -73,14 +73,18 @@ fn lists_regular_files_using_question_mark_wildcard() {
|
||||
#[test]
|
||||
fn lists_all_files_in_directories_from_stream() {
|
||||
Playground::setup("ls_test_4", |dirs, sandbox| {
|
||||
sandbox.mkdir("dir_a").mkdir("dir_b").with_files(vec![
|
||||
EmptyFile("root1.txt"),
|
||||
EmptyFile("root2.txt"),
|
||||
EmptyFile("dir_a/yehuda.10.txt"),
|
||||
EmptyFile("dir_a/jonathan.10.txt"),
|
||||
EmptyFile("dir_b/andres.10.txt"),
|
||||
EmptyFile("dir_b/chicken_not_to_be_picked_up.100.txt"),
|
||||
]);
|
||||
sandbox
|
||||
.with_files(vec![EmptyFile("root1.txt"), EmptyFile("root2.txt")])
|
||||
.within("dir_a")
|
||||
.with_files(vec![
|
||||
EmptyFile("yehuda.10.txt"),
|
||||
EmptyFile("jonathan.10.txt"),
|
||||
])
|
||||
.within("dir_b")
|
||||
.with_files(vec![
|
||||
EmptyFile("andres.10.txt"),
|
||||
EmptyFile("chicken_not_to_be_picked_up.100.txt"),
|
||||
]);
|
||||
|
||||
let actual = nu!(
|
||||
cwd: dirs.test(), pipeline(
|
||||
|
Loading…
Reference in New Issue
Block a user