diff --git a/src/bitcoin/d/mod.rs b/src/bitcoin/d/mod.rs index 1d05f79bb..6f3e4d264 100644 --- a/src/bitcoin/d/mod.rs +++ b/src/bitcoin/d/mod.rs @@ -1560,10 +1560,25 @@ mod tests { #[test] fn test_rounded_up_progress() { - assert_eq!(SyncProgress::new(0.6, 1_000, 1_000).rounded_up_progress(), 0.6); - assert_eq!(SyncProgress::new(0.67891, 1_000, 1_000).rounded_up_progress(), 0.6789); - assert_eq!(SyncProgress::new(0.99991, 1_000, 1_000).rounded_up_progress(), 1.0); - assert_eq!(SyncProgress::new(1.2, 1_000, 1_000).rounded_up_progress(), 1.0); - assert_eq!(SyncProgress::new(1.0, 1_000, 999).rounded_up_progress(), 0.9999); + assert_eq!( + SyncProgress::new(0.6, 1_000, 1_000).rounded_up_progress(), + 0.6 + ); + assert_eq!( + SyncProgress::new(0.67891, 1_000, 1_000).rounded_up_progress(), + 0.6789 + ); + assert_eq!( + SyncProgress::new(0.99991, 1_000, 1_000).rounded_up_progress(), + 1.0 + ); + assert_eq!( + SyncProgress::new(1.2, 1_000, 1_000).rounded_up_progress(), + 1.0 + ); + assert_eq!( + SyncProgress::new(1.0, 1_000, 999).rounded_up_progress(), + 0.9999 + ); } }