Skip to content

Commit

Permalink
fixup! Add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
klingtnet committed Mar 22, 2023
1 parent 18e7877 commit aeaf10a
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions tests/dirs_only.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,13 @@ mod utils;
#[test]
fn level() {
assert_eq!(
utils::run_cmd(&[
"--sort",
"name",
"--no-config",
"--dirs-only",
"tests/data"
]),
utils::run_cmd(&["--sort", "name", "--no-config", "--dirs-only", "tests/data"]),
indoc!(
"
data
├─ dream_cycle
├─ lipsum
└─ the_yellow_king"
data (1.21 KiB)
├─ dream_cycle (308 B)
├─ lipsum (446 B)
└─ the_yellow_king (143 B)"
),
"Failed to print dirs-only."
)
Expand Down

0 comments on commit aeaf10a

Please sign in to comment.