use fileidentifier::check::FileFormat; use fileidentifier::file::*; #[test] fn file_mod_test() { let file = File::new("tests/files/x.png").unwrap(); assert_eq!(FileFormat::Png, file.get_file_format()); }