use hdf5_metno as hdf5; #[test] fn roundtrip_compound_type() { use hdf5::H5Type; #[derive(H5Type)] #[repr(C)] struct Compound { a: u8, b: u8, } let dt = hdf5::Datatype::from_type::().unwrap(); let td = dt.to_descriptor().unwrap(); assert_eq!(td, Compound::type_descriptor()); }