diff --git a/tests/integration.rs b/tests/integration.rs index e78da82..4f09ad7 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -397,6 +397,20 @@ fn test_bad_utf_8_name() { .stdout(predicate::str::is_match("bad-name\u{fffd}\u{fffd}.ext\n$").unwrap()); } +#[test] +fn test_tree() { + let tmp = tempdir(); + tmp.child("one").touch().unwrap(); + tmp.child("one.d").create_dir_all().unwrap(); + tmp.child("one.d/two").touch().unwrap(); + + cmd() + .arg(tmp.path()) + .arg("--tree") + .assert() + .stdout(predicate::str::is_match("├── one\n└── one.d\n └── two\n$").unwrap()); +} + #[test] fn test_tree_d() { let tmp = tempdir();