Skip to content

Commit

Permalink
Add regression test for #209
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherRabotin committed Jun 9, 2024
1 parent 53f0e07 commit 4a0c046
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/epoch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2031,3 +2031,16 @@ fn regression_test_gh_261() {
}
}
}

#[test]
fn regression_test_gh_209() {
let t = Epoch::from_time_of_week(1983, 0, TimeScale::GPST);

println!("{t}");
// Should print

assert_eq!(format!("{t}"), format!("2018-01-07T00:00:00 GPST"));

let t = Epoch::from_time_of_week(1982, 604800000000000 - 19000000000, TimeScale::GPST);
println!("{t}");
}

0 comments on commit 4a0c046

Please sign in to comment.