what is this
Some checks failed
Rust/spacepackets/pipeline/head There was a failure building this commit
Some checks failed
Rust/spacepackets/pipeline/head There was a failure building this commit
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user