mirror of
https://github.com/lsd-rs/lsd.git
synced 2026-04-20 18:41:00 +02:00
display/tree: 🔍 ✨ add test and changelog for show edge before name
Signed-off-by: zwPapEr <zw.paper@gmail.com>
This commit is contained in:
@@ -447,6 +447,20 @@ fn test_tree_all_not_show_self() {
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_tree_show_edge_before_name() {
|
||||
let tmp = tempdir();
|
||||
tmp.child("one.d").create_dir_all().unwrap();
|
||||
tmp.child("one.d/two").touch().unwrap();
|
||||
|
||||
cmd()
|
||||
.arg(tmp.path())
|
||||
.arg("--tree")
|
||||
.arg("--long")
|
||||
.assert()
|
||||
.stdout(predicate::str::is_match("└── two\n$").unwrap());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_tree_d() {
|
||||
let tmp = tempdir();
|
||||
|
||||
Reference in New Issue
Block a user