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