Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume W. Bres <[email protected]>
  • Loading branch information
gwbres committed Sep 29, 2023
1 parent 451c29a commit 7f6441e
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions tests/epoch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1284,9 +1284,9 @@ fn test_timescale_recip() {
// Test that we can convert this epoch into another time scale and re-initialize it correctly from that value.
for ts in &[
TimeScale::TAI,
//TimeScale::ET,
//TimeScale::TDB,
//TimeScale::TT,
TimeScale::ET,
TimeScale::TDB,
TimeScale::TT,
TimeScale::UTC,
] {
let converted = utc_epoch.to_duration_in_time_scale(*ts);
Expand All @@ -1305,20 +1305,20 @@ fn test_timescale_recip() {
assert_eq!(utc_epoch, from_dur);
}

//// RFC3339 test
//#[cfg(feature = "std")]
//{
// use core::str::FromStr;
// let to_rfc = utc_epoch.to_rfc3339();
// let from_rfc = Epoch::from_str(&to_rfc).unwrap();
// RFC3339 test
#[cfg(feature = "std")]
{
use core::str::FromStr;
let to_rfc = utc_epoch.to_rfc3339();
let from_rfc = Epoch::from_str(&to_rfc).unwrap();

// println!(
// "{} for {utc_epoch}\tto = {to_rfc}\tfrom={from_rfc}",
// from_rfc - utc_epoch
// );
println!(
"{} for {utc_epoch}\tto = {to_rfc}\tfrom={from_rfc}",
from_rfc - utc_epoch
);

// assert_eq!(from_rfc, utc_epoch);
//}
assert_eq!(from_rfc, utc_epoch);
}
}
};

Expand Down

0 comments on commit 7f6441e

Please sign in to comment.