#[test]
fn date_from_elapsed() {
    let d = phoboss::temporal::calendar::PhobosDate::from_elapsed_days(50.0);
    assert!(d.orbit_index >= 0);
    assert!(d.day_in_orbit >= 0.0);
}

#[test]
fn epoch_j2000() {
    let e = phoboss::temporal::epoch::Epoch::from_julian_date(2_451_545.0);
    assert!(e.days_since_j2000().abs() < 1e-10);
}

#[test]
fn time_scale_realtime() {
    let ts = phoboss::temporal::time_scale::TimeScale::realtime();
    assert!((ts.advance_seconds(10.0) - 10.0).abs() < 1e-10);
}

#[test]
fn time_scale_ff() {
    let ts = phoboss::temporal::time_scale::TimeScale::fast_forward(100.0);
    assert!((ts.advance_seconds(1.0) - 100.0).abs() < 1e-10);
}
