diff --git a/Cargo.toml b/Cargo.toml index 4b07cc9..ac759ae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "fimg" -version = "0.4.6" +version = "0.4.7" authors = ["bend-n "] license = "MIT" edition = "2021" description = "fast image operations" repository = "https://github.com/bend-n/fimg" -exclude = ["src/cat.png", "src/small_cat.png", "benches/"] +exclude = ["tdata", "benches/"] [dependencies] png = { version = "0.17", features = ["unstable"], optional = true } diff --git a/src/scale.rs b/src/scale.rs index 0ba614b..09fdf20 100644 --- a/src/scale.rs +++ b/src/scale.rs @@ -33,9 +33,9 @@ impl Nearest { #[test] fn test_nearest() { - let i = Image::<_, 3>::open("src/cat.png"); + let i = Image::<_, 3>::open("tdata/cat.png"); assert_eq!( unsafe { Nearest::scale(i.as_ref(), 268, 178) }.buffer, - Image::<_, 3>::open("src/small_cat.png").buffer + Image::<_, 3>::open("tdata/small_cat.png").buffer ); } diff --git a/src/cat.png b/tdata/cat.png similarity index 100% rename from src/cat.png rename to tdata/cat.png diff --git a/src/small_cat.png b/tdata/small_cat.png similarity index 100% rename from src/small_cat.png rename to tdata/small_cat.png