diff --git a/assets/test-data/blahaj.png b/assets/test-data/blahaj.png new file mode 100644 index 0000000..195a8a2 Binary files /dev/null and b/assets/test-data/blahaj.png differ diff --git a/assets/test-data/blahaj1.bmp b/assets/test-data/blahaj1.bmp deleted file mode 100644 index d3e1ac7..0000000 Binary files a/assets/test-data/blahaj1.bmp and /dev/null differ diff --git a/src/assets/tests.rs b/src/assets/tests.rs index c32d6b5..b1c9e5e 100644 --- a/src/assets/tests.rs +++ b/src/assets/tests.rs @@ -5,7 +5,7 @@ use crate::asset_managment::Asset; #[test] fn test_texture_load() { crate::test_utils::generate_gpu(); - let mut texture = super::Texture::new_bmp(Path::new("assets/test-data/blahaj1.bmp")); + let mut texture = super::Texture::new_png(Path::new("assets/test-data/blahaj.png")); //You're not supposed to set ids manually, but it's fine :3 texture.set_id(1).unwrap(); diff --git a/src/import/bmp.rs b/src/import/bmp.rs index f6f67d4..de80205 100644 --- a/src/import/bmp.rs +++ b/src/import/bmp.rs @@ -92,8 +92,3 @@ pub fn parse(data: &[u8]) -> Result> { data: out, }) } - -#[test] -fn test_image_loading() { - parse(include_bytes!("../../assets/blahaj1.bmp")).unwrap(); -}