Fix tests for SystemTime addition on mac and ios

Those platforms don't support nanosecond precision, so adding 1
nanosecond does nothing.
This commit is contained in:
Sean Griffin 2015-12-03 08:27:32 -07:00
parent a59cd363cc
commit 5dbc373f70

@ -305,8 +305,8 @@ mod tests {
assert_almost_eq!(a - (eighty_years * 10) + (eighty_years * 10), a);
let one_second_from_epoch = UNIX_EPOCH + Duration::new(1, 0);
let one_second_from_epoch2 = UNIX_EPOCH + Duration::new(0, 999_999_999)
+ Duration::new(0, 1);
let one_second_from_epoch2 = UNIX_EPOCH + Duration::new(0, 500_000_000)
+ Duration::new(0, 500_000_000);
assert_eq!(one_second_from_epoch, one_second_from_epoch2);
}