Format the download description test
This commit is contained in:
@@ -526,7 +526,10 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn a_download_reads_as_what_it_knows() {
|
fn a_download_reads_as_what_it_knows() {
|
||||||
let mb = 1024 * 1024;
|
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!(
|
assert_eq!(
|
||||||
describe_download(0, Some(38 * mb)),
|
describe_download(0, Some(38 * mb)),
|
||||||
("Downloading 38.0 MB".to_string(), 0.0)
|
("Downloading 38.0 MB".to_string(), 0.0)
|
||||||
|
|||||||
Reference in New Issue
Block a user