mirror of
https://github.com/chronotope/chrono.git
synced 2025-10-01 15:03:14 +00:00
Extend test to more distant dates
This commit is contained in:
parent
fc67f3e6e0
commit
0ef34e4da3
@ -292,8 +292,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn verify_correct_offsets_distant_past() {
|
||||
// let distant_past = Local::now() - TimeDelta::days(365 * 100);
|
||||
let distant_past = Local::now() - TimeDelta::days(250 * 31);
|
||||
let distant_past = Local::now() - TimeDelta::days(365 * 500);
|
||||
let from_local = Local.from_local_datetime(&distant_past.naive_local()).unwrap();
|
||||
let from_utc = Local.from_utc_datetime(&distant_past.naive_utc());
|
||||
|
||||
@ -306,7 +305,7 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn verify_correct_offsets_distant_future() {
|
||||
let distant_future = Local::now() + TimeDelta::days(250 * 31);
|
||||
let distant_future = Local::now() + TimeDelta::days(365 * 35000);
|
||||
let from_local = Local.from_local_datetime(&distant_future.naive_local()).unwrap();
|
||||
let from_utc = Local.from_utc_datetime(&distant_future.naive_utc());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user