#[test]
fn planetshine_irradiance() {
    assert!(titanss::lighting::saturnshine::saturnshine_irradiance_lux(0.7) > 0.0);
}

#[test]
fn dark_side_visibility() {
    assert!(titanss::lighting::saturnshine::dark_side_visibility_index(0.7, 0.5) > 0.0);
}

#[test]
fn eclipse_totality() {
    let e = titanss::lighting::eclipses::typical_titan_eclipse();
    assert!(e.totality_duration_minutes() > 0.0);
}

#[test]
fn solar_elevation() {
    let elev = titanss::lighting::solar_position::solar_elevation_deg(0.0, 382.7 * 0.5);
    assert!((-90.0..=90.0).contains(&elev));
}

#[test]
fn illumination() {
    let il = titanss::lighting::solar_position::illumination(0.0, 382.7 * 0.5, 10.0);
    assert!(il.incidence_deg >= 0.0 && il.incidence_deg <= 180.0);
}
