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 89d20e564a
commit c35bf38420

View File

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