use fileidentifier::read; use std::fs; use std::path::Path; #[test] fn read_file_test() { let x = Path::new("tests/files/x.png"); let buffer = &read(x).unwrap()[..2]; assert_eq!(&fs::read(x).unwrap()[..2], buffer) }