24 lines
560 B
Rust
24 lines
560 B
Rust
use maraiah::{durandal::image::Color8, marathon::{machdr, pict}};
|
|
|
|
#[test]
|
|
fn get_clut_must_process_this()
|
|
{
|
|
const INPUT: &[u8] = include_bytes!("data/clut.in");
|
|
const OUTPUT: [Color8; 256] = include!("data/clut.out");
|
|
|
|
assert_eq!(pict::get_clut(INPUT).unwrap(), (OUTPUT.to_vec(), 2056));
|
|
}
|
|
|
|
#[test]
|
|
fn macbin_must_process_this()
|
|
{
|
|
const INPUT: &[u8] = include_bytes!("data/macbin.in");
|
|
|
|
assert_eq!(machdr::check_macbin(INPUT), Some(128));
|
|
assert_eq!(machdr::try_mac_header(INPUT), 128);
|
|
}
|
|
|
|
// TODO: missing test data for applesingle
|
|
|
|
// EOF
|