#[test]
fn orbit_defaults() {
    let o = europas::physics::orbit::EuropaOrbit::new();
    assert!(o.semi_major_axis_m > 6.0e8);
    assert!(o.eccentricity < 0.01);
}

#[test]
fn periapsis_less_than_apoapsis() {
    let o = europas::physics::orbit::EuropaOrbit::new();
    assert!(o.periapsis_m() < o.apoapsis_m());
}

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

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

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

#[test]
fn jupiter_tidal_acceleration_nonzero() {
    assert!(europas::physics::tides::jupiter_tidal_acceleration(0.0).abs() > 0.0);
}

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

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