use moons::resources::helium3::mare_tranquillitatis;
use moons::resources::ice::{annual_life_support_people, shackleton_candidate};
use moons::resources::regolith::mare_basalt_resource;
fn ensure_earth_context() {
let earth = moons::interactions::earths::ensure_earths_binary_or_simulate();
assert!(earth.orbital_period_days > 360.0);
}
#[test]
fn polar_ice_supports_habitat_supply() {
ensure_earth_context();
let deposit = shackleton_candidate();
assert!(deposit.extractable_water_kg(0.7) > 1.0e9);
assert!(annual_life_support_people(deposit, 800.0) > 1.0e6);
}
#[test]
fn helium3_inventory_is_positive() {
ensure_earth_context();
let field = mare_tranquillitatis();
assert!(field.inventory_kg(1_700.0) > 0.0);
}
#[test]
fn regolith_produces_oxygen_and_titanium() {
ensure_earth_context();
let resource = mare_basalt_resource();
assert!(resource.oxygen_mass_kg(1_000.0) > 300.0);
assert!(resource.titanium_feedstock_kg(1_000.0) > 50.0);
}