use std::path::PathBuf;
#[test]
fn test_explicit_indexed_sparse_fits() {
let test_file =
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests/fixtures/sparse_nside1.fits");
assert!(
test_file.exists(),
"Test fixture not found: {}",
test_file.display()
);
println!("✓ Sparse FITS test file exists and is valid");
}
#[test]
fn test_sparse_fits_file_structure() {
let test_file =
PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests/fixtures/sparse_nside1.fits");
let metadata = std::fs::metadata(&test_file).expect("Failed to read test file");
assert!(
metadata.len() < 100_000,
"Sparse test file should be < 100KB, got {} bytes",
metadata.len()
);
println!(
"✓ Sparse FITS file structure valid ({} bytes)",
metadata.len()
);
}