use flowfairy_api::fcs::{FcsFile, FcsError}; //use serde_json; const FORMAT_3_0_TESTFILE: &str = "./tests/test_fcs_files/format_3_0.fcs"; #[test] pub fn test_fcs_reader() -> Result<(), FcsError>{ let fcs_file = FcsFile::open(FORMAT_3_0_TESTFILE)?; let data = fcs_file.read()?; //let data_serialized = serde_json::to_string(&data).unwrap(); data.metadata.keys().for_each(|name| println!("{}", name)); //data.parameters.keys().for_each(|name| println!("{}", name)); //println!("{}", data_serialized); // print metadata keys for debugging assert_eq!(data.parameters.get("FSC-A").unwrap().len(), 21030); Ok(()) }