From 1372815007572ab1c2a63ee753381e4b4f60e95e Mon Sep 17 00:00:00 2001 From: janbridley Date: Fri, 8 Nov 2024 10:53:00 -0500 Subject: [PATCH] Format src/display.rs --- src/display.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/display.rs b/src/display.rs index f429944c..18d56aad 100644 --- a/src/display.rs +++ b/src/display.rs @@ -566,8 +566,14 @@ mod tests { assert_eq!(human_readable_number(1024 * 1024 * 1024 - 1, ""), "1023M"); assert_eq!(human_readable_number(1024 * 1024 * 1024 * 20, ""), "20G"); assert_eq!(human_readable_number(1024 * 1024 * 1024 * 1024, ""), "1.0T"); - assert_eq!(human_readable_number(1024 * 1024 * 1024 * 1024 * 234, ""), "234T"); - assert_eq!(human_readable_number(1024 * 1024 * 1024 * 1024 * 1024, ""), "1.0P"); + assert_eq!( + human_readable_number(1024 * 1024 * 1024 * 1024 * 234, ""), + "234T" + ); + assert_eq!( + human_readable_number(1024 * 1024 * 1024 * 1024 * 1024, ""), + "1.0P" + ); } #[test]