Browse Source

test: add bytes to mebi bytes test

main
fdai7381 2 years ago
parent
commit
bdfa1a4a8a
  1. 5
      src/builtins/fetch.rs

5
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);
}
}
Loading…
Cancel
Save