Format the download description test

This commit is contained in:
2026-09-26 11:23:09 -04:00
parent 4bec01eaf1
commit c3b10ed372
+4 -1
View File
@@ -526,7 +526,10 @@ mod tests {
#[test]
fn a_download_reads_as_what_it_knows() {
let mb = 1024 * 1024;
assert_eq!(describe_download(0, None), ("Downloading…".to_string(), -1.0));
assert_eq!(
describe_download(0, None),
("Downloading…".to_string(), -1.0)
);
assert_eq!(
describe_download(0, Some(38 * mb)),
("Downloading 38.0 MB".to_string(), 0.0)