Compare commits
1 Commits
e172fe0407
...
ef37a84edc
Author | SHA1 | Date | |
---|---|---|---|
ef37a84edc |
|
@ -1383,9 +1383,8 @@ 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 =
|
let cuc = CucTime::from_unix_time(&unix_stamp, FractionalResolution::Seconds, LEAP_SECONDS)
|
||||||
CucTime::from_unix_time(&unix_stamp, FractionalResolution::Seconds, LEAP_SECONDS)
|
.expect("failed to create cuc from unix stamp");
|
||||||
.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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user