chore: Add macOS-specific test for format_bytes_speed function

This commit is contained in:
wonfen 2025-02-17 03:10:03 +08:00
parent 932d36462f
commit cee9be81bf

View File

@ -223,6 +223,7 @@ pub fn format_bytes_speed(speed: u64) -> String {
} }
} }
#[cfg(target_os = "macos")]
#[test] #[test]
fn test_format_bytes_speed() { fn test_format_bytes_speed() {
assert_eq!(format_bytes_speed(0), "0B/s"); assert_eq!(format_bytes_speed(0), "0B/s");