#[test]
fn primary_site() {
    let s = phoboss::geodata::landing_sites::primary_site();
    assert!(!s.name.is_empty());
}

#[test]
fn secondary_site() {
    let s = phoboss::geodata::landing_sites::secondary_site();
    assert!(!s.name.is_empty());
}

#[test]
fn coordinates_cartesian() {
    let c = phoboss::geodata::coordinates::LatLonAlt::new(0.0, 0.0, 0.0);
    let xyz = c.to_cartesian();
    assert!((xyz[0] - phoboss::PHOBOS_RADIUS_M).abs() < 1.0);
}

#[test]
fn elevation_sample() {
    let s = phoboss::geodata::elevation::sample_dem(10.0, 30.0);
    assert!(s.elevation_m.is_finite());
}

#[test]
fn region_classification() {
    let r = phoboss::geodata::regions::named_region(0.0, 0.0);
    assert_eq!(
        r,
        phoboss::geodata::regions::PhobosRegion::LeadingHemisphere
    );
}
