diff --git a/tests/macbin.in b/tests/macbin.in new file mode 100644 index 0000000..748a709 Binary files /dev/null and b/tests/macbin.in differ diff --git a/tests/machdr.rs b/tests/machdr.rs new file mode 100644 index 0000000..bd8ed5e --- /dev/null +++ b/tests/machdr.rs @@ -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