exodata-core 0.2.0

Core data loading, metadata, insight, and table logic for Exoplanets Catalog
type TestResult = Result<(), Box<dyn std::error::Error>>;

#[test]
fn test_exoplanets_loader() -> TestResult {
    use exo_core::tables::common::{load_data, load_data_with_limit};

    let df = load_data("tests/fixtures/exoplanets.fixture")?;
    assert_eq!(df.height(), 100);

    let limited =
        load_data_with_limit("tests/fixtures/exoplanets.fixture", Some(5))?;
    assert_eq!(limited.height(), 5);

    Ok(())
}

#[test]
fn test_stellarhosts_loader() -> TestResult {
    use exo_core::tables::common::load_data;

    let df = load_data("tests/fixtures/stellarhosts.fixture")?;
    assert!(df.height() > 0);

    Ok(())
}