Browse Source

test: add format uptime hours test

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

5
src/builtins/fetch.rs

@ -70,4 +70,9 @@ mod tests {
fn test_format_uptime_minutes() { fn test_format_uptime_minutes() {
assert_eq!(format_uptime(135), "0h 2m 15s"); assert_eq!(format_uptime(135), "0h 2m 15s");
} }
#[test]
fn test_format_uptime_hours() {
assert_eq!(format_uptime(3735), "1h 2m 15s");
}
} }
Loading…
Cancel
Save