From eef081cefde750fd78abb4060643371e6d4424b5 Mon Sep 17 00:00:00 2001 From: Adam Eury Date: Sun, 8 Sep 2024 18:07:33 -0400 Subject: [PATCH] Update message --- src/main.rs | 2 +- tests/cli.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 6f5091d..671cf1d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,7 +21,7 @@ fn main() -> anyhow::Result<()> { sp.clear(); if results.is_empty() { - println!("The directory is empty."); + println!("No files found."); } else { println!("*** Top {} largest files ***", results.len()); for (size, path) in results { diff --git a/tests/cli.rs b/tests/cli.rs index 8e9cb0c..45366a2 100644 --- a/tests/cli.rs +++ b/tests/cli.rs @@ -77,7 +77,7 @@ fn binary_reports_that_the_directory_is_empty_if_it_contains_zero_files() { .arg(dir.path()) .assert() .success() - .stdout(predicates::str::contains("The directory is empty.")); + .stdout(predicates::str::contains("No files found.")); } #[test]