From 053eb6ac27b2cc3ee2f46cded70de373fc359660 Mon Sep 17 00:00:00 2001 From: fdai7381 Date: Tue, 24 Jan 2023 13:24:32 +0100 Subject: [PATCH] test: add bytes to mebi bytes test --- src/builtins/fetch.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/builtins/fetch.rs b/src/builtins/fetch.rs index 434b31f..f07ea29 100644 --- a/src/builtins/fetch.rs +++ b/src/builtins/fetch.rs @@ -75,4 +75,9 @@ mod tests { fn test_format_uptime_hours() { assert_eq!(format_uptime(3735), "1h 2m 15s"); } + + #[test] + fn test_bytes_to_mebi_bytes() { + assert_eq!(bytes_to_mebi_bytes(7628144640), 7274); + } }