From 72548161a8736e5c34dce897d41d6a2db1700235 Mon Sep 17 00:00:00 2001 From: zwPapEr Date: Thu, 25 Mar 2021 16:08:38 +0800 Subject: [PATCH] display/tree: :mag: :hammer: fix test to fit new tree display Signed-off-by: zwPapEr --- tests/integration.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/integration.rs b/tests/integration.rs index de5c6c53e..0bf3b4496 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -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 {