diff options
author | zwPapEr <zw.paper@gmail.com> | 2021-02-16 00:49:52 +0800 |
---|---|---|
committer | Abin Simon <abinsimon10@gmail.com> | 2021-03-27 20:13:05 +0530 |
commit | 072a9bd7566ccd2ad2b6d0a0a7debc5a970e7ca2 (patch) | |
tree | 43af68e8d0e3c8f7dd3ace2af5967941ed758f84 /tests | |
parent | 7f3d4ff9e27b52f8aa86868be9e0b7afc67589d9 (diff) |
display/tree: :mag: :sparkles: add test and changelog for show edge before name
Signed-off-by: zwPapEr <zw.paper@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/integration.rs b/tests/integration.rs index b65ff03..de5c6c5 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -448,6 +448,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(); tmp.child("one").touch().unwrap(); |