display/tree: 🔍 🔨 fix test to fit new tree display

Signed-off-by: zwPapEr <zw.paper@gmail.com>
This commit is contained in:
zwPapEr 2021-03-25 16:08:38 +08:00 committed by Abin Simon
parent 154fc1ef69
commit 72548161a8

View file

@ -426,7 +426,7 @@ fn test_tree() {
.arg(tmp.path())
.arg("--tree")
.assert()
.stdout(predicate::str::is_match("├── one\n└── one.d\n └── two\n$").unwrap());
.stdout(predicate::str::is_match("├── one\n└── one.d\n └── two\n$").unwrap());
}
#[test]
@ -443,7 +443,8 @@ fn test_tree_all_not_show_self() {
.arg("--all")
.assert()
.stdout(
predicate::str::is_match("├── one\n└── one.d\n ├── .hidden\n └── two\n$").unwrap(),
predicate::str::is_match("├── one\n└── one.d\n ├── .hidden\n └── two\n$")
.unwrap(),
);
}
@ -476,7 +477,7 @@ fn test_tree_d() {
.arg("--tree")
.arg("-d")
.assert()
.stdout(predicate::str::is_match("├── one.d\n└── one.d\n└── two.d\n$").unwrap());
.stdout(predicate::str::is_match("├── one.d\n └── one.d\n└── two.d\n$").unwrap());
}
fn cmd() -> Command {