We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bbbdbd commit 9b4e9b4Copy full SHA for 9b4e9b4
1 file changed
tests/tests.rs
@@ -2525,6 +2525,18 @@ fn test_list_details() {
2525
te.assert_success_and_get_output(".", &["--list-details"]);
2526
}
2527
2528
+#[test]
2529
+fn test_list_details_format() {
2530
+ let te = TestEnv::new(DEFAULT_DIRS, DEFAULT_FILES);
2531
+ create_file_with_size(te.test_root().join("size_test_100"), 100);
2532
+
2533
+ let output = te.assert_success_and_get_output(".", &["--list-details", "size_test_100"]);
2534
+ let stdout = String::from_utf8_lossy(&output.stdout);
2535
2536
+ assert!(stdout.contains("100 B"));
2537
+ assert!(stdout.trim().ends_with("size_test_100"));
2538
+}
2539
2540
#[test]
2541
fn test_single_and_multithreaded_execution() {
2542
let te = TestEnv::new(DEFAULT_DIRS, DEFAULT_FILES);
0 commit comments