#[test]
fn reference_composition_has_species() {
    let sp = europas::exosphere::species::reference_composition();
    assert!(sp.len() >= 2);
}

#[test]
fn dominant_species_o2() {
    let sp = europas::exosphere::species::reference_composition();
    let dom = europas::exosphere::species::dominant_species(&sp).unwrap();
    assert_eq!(dom.name, "O2");
}

#[test]
fn dayside_charging() {
    let c = europas::exosphere::charging::SurfaceCharging::dayside();
    assert!(c.surface_potential_v().is_finite());
}

#[test]
fn nightside_more_negative() {
    let d = europas::exosphere::charging::SurfaceCharging::dayside();
    let n = europas::exosphere::charging::SurfaceCharging::nightside();
    assert!(n.surface_potential_v() < d.surface_potential_v());
}

#[test]
fn jeans_parameter_positive() {
    assert!(europas::exosphere::escape::jeans_parameter(100.0, 0.032) > 0.0);
}
