#[test]
fn orbit_defaults() {
    let o = phoboss::physics::orbit::PhobosOrbit::new();
    assert!(o.semi_major_axis_m > 1.0e6);
}

#[test]
fn orbital_period() {
    let o = phoboss::physics::orbit::PhobosOrbit::new();
    assert!(o.orbital_period_s() > 1.0e4);
}

#[test]
fn periapsis_lt_apoapsis() {
    let o = phoboss::physics::orbit::PhobosOrbit::new();
    assert!(o.periapsis_m() < o.apoapsis_m());
}

#[test]
fn orbital_speed() {
    let o = phoboss::physics::orbit::PhobosOrbit::new();
    assert!(o.orbital_speed_m_s(o.semi_major_axis_m) > 0.0);
}

#[test]
fn rotation_synchronous() {
    let r = phoboss::physics::rotation::PhobosRotation::new();
    assert!(r.synchronous);
    assert!(r.equatorial_speed_m_s() > 0.0);
}

#[test]
fn tidal_response() {
    let t = phoboss::physics::tides::TidalResponse::current();
    assert!(t.love_number > 0.0);
    assert!(t.mean_displacement_m > 0.0);
}

#[test]
fn tidal_acceleration() {
    assert!(phoboss::physics::tides::mars_tidal_acceleration(0.0).abs() > 0.0);
}

#[test]
fn dissipation_power() {
    let t = phoboss::physics::tides::TidalResponse::current();
    assert!(phoboss::physics::tides::dissipation_power_w(t) > 0.0);
}

#[test]
fn micrometeorite() {
    let m = phoboss::physics::collisions::micrometeorite();
    assert!(m.mass_kg() < 1.0);
    assert!(m.kinetic_energy_j() > 0.0);
}

#[test]
fn basin_forming() {
    let b = phoboss::physics::collisions::basin_forming_impactor();
    assert!(b.transient_crater_diameter_m() > 1_000.0);
}
