We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a59cd36 commit 5dbc373Copy full SHA for 5dbc373
src/libstd/time/mod.rs
@@ -305,8 +305,8 @@ mod tests {
305
assert_almost_eq!(a - (eighty_years * 10) + (eighty_years * 10), a);
306
307
let one_second_from_epoch = UNIX_EPOCH + Duration::new(1, 0);
308
- let one_second_from_epoch2 = UNIX_EPOCH + Duration::new(0, 999_999_999)
309
- + Duration::new(0, 1);
+ let one_second_from_epoch2 = UNIX_EPOCH + Duration::new(0, 500_000_000)
+ + Duration::new(0, 500_000_000);
310
assert_eq!(one_second_from_epoch, one_second_from_epoch2);
311
}
312
0 commit comments