diff --git a/Cargo.toml b/Cargo.toml index 3adc72d..e4678a7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,5 +5,5 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html -[dependencies] +[dev-dependencies] png = "0.17.14" diff --git a/src/main.rs b/tests/codec.rs similarity index 99% rename from src/main.rs rename to tests/codec.rs index 82bda6c..0713741 100644 --- a/src/main.rs +++ b/tests/codec.rs @@ -7,6 +7,7 @@ use std::io::BufWriter; use std::path::Path; use std::{fs::File, io::Read}; +#[test] fn main() -> Result<(), DecodeError> { let file = File::open("qoi_test_images/dice.qoi").unwrap(); let mut bytes = file.bytes()