Compare commits
2 Commits
ef37a84edc
...
e172fe0407
Author | SHA1 | Date | |
---|---|---|---|
e172fe0407
|
|||
0433f068c1
|
@ -1383,8 +1383,9 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn from_unix_stamp() {
|
fn from_unix_stamp() {
|
||||||
let unix_stamp = UnixTime::new(0, 0);
|
let unix_stamp = UnixTime::new(0, 0);
|
||||||
let cuc = CucTime::from_unix_time(&unix_stamp, FractionalResolution::Seconds, LEAP_SECONDS)
|
let cuc =
|
||||||
.expect("failed to create cuc from unix stamp");
|
CucTime::from_unix_time(&unix_stamp, FractionalResolution::Seconds, LEAP_SECONDS)
|
||||||
|
.expect("failed to create cuc from unix stamp");
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
cuc.counter(),
|
cuc.counter(),
|
||||||
(-DAYS_CCSDS_TO_UNIX * SECONDS_PER_DAY as i32) as u32 + LEAP_SECONDS
|
(-DAYS_CCSDS_TO_UNIX * SECONDS_PER_DAY as i32) as u32 + LEAP_SECONDS
|
||||||
|
Reference in New Issue
Block a user