use std::path::PathBuf;
use image::open;
use imageproc::assert_pixels_eq;
use maco::{convert, ConvertParams};
const BASE_PATH: [&str; 3] = [".", "tests", "images"];
#[test]
fn convert_sample() {
let path: PathBuf = BASE_PATH.iter().collect();
let want = open(&path.join("wikipe-tan-want.png"))
.unwrap()
.into_luma8();
let got = open(&path.join("wikipe-tan-grayscale.png"))
.unwrap()
.into_luma8();
let params = ConvertParams::builder().build();
let got = convert(got, ¶ms);
assert_pixels_eq!(got, want);
}