add machdr test

png-branch
an 2019-02-05 17:52:32 -05:00
parent 256c05c806
commit 9a8573a381
2 changed files with 14 additions and 0 deletions

BIN
tests/macbin.in Normal file

Binary file not shown.

14
tests/machdr.rs Normal file
View File

@ -0,0 +1,14 @@
use maraiah::marathon::machdr::*;
// TODO: missing test data for applesingle
#[test]
fn macbin_must_process_this()
{
assert_eq!( check_macbin(INPUT_MACBIN), Some(128));
assert_eq!(try_mac_header(INPUT_MACBIN), 128);
}
const INPUT_MACBIN: &'static [u8] = include_bytes!("macbin.in");
// EOF