what is this
Some checks failed
Rust/spacepackets/pipeline/head There was a failure building this commit

This commit is contained in:
2023-12-05 18:35:08 +01:00
parent ed4c8af164
commit c19e8e6464
2 changed files with 47 additions and 1 deletions

View File

@ -2252,6 +2252,14 @@ mod tests {
assert_eq!(stamp_small.ms_of_day(), 500);
}
#[test]
fn test_update_from_now() {
let mut stamp = TimeProvider::new_with_u16_days(0, 0);
stamp.update_from_now();
let dt = stamp.as_date_time();
assert!(dt.year() > 2020);
}
#[test]
#[cfg(feature = "serde")]
fn test_serialization() {