#[test]
fn reference_composition_has_species() {
let species = callistos::exosphere::species::reference_composition();
assert!(species.len() >= 3);
}
#[test]
fn dominant_species_is_co2() {
let species = callistos::exosphere::species::reference_composition();
let dom = callistos::exosphere::species::dominant_species(&species).unwrap();
assert_eq!(dom.name, "CO2");
}
#[test]
fn dayside_charging_potential() {
let c = callistos::exosphere::charging::SurfaceCharging::dayside();
assert!(c.surface_potential_v().is_finite());
}
#[test]
fn nightside_more_negative() {
let day = callistos::exosphere::charging::SurfaceCharging::dayside();
let night = callistos::exosphere::charging::SurfaceCharging::nightside();
assert!(night.surface_potential_v() < day.surface_potential_v());
}
#[test]
fn jeans_parameter_positive() {
let j = callistos::exosphere::escape::jeans_parameter(120.0, 0.044);
assert!(j > 0.0);
}
#[test]
fn ballistic_hop_range_positive() {
let r = callistos::exosphere::escape::ballistic_hop_range_m(500.0, 45.0);
assert!(r > 0.0);
}