Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciubix8513 committed Jul 19, 2024
1 parent ac95af9 commit c6cd4ca
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
Binary file added assets/test-data/blahaj.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/test-data/blahaj1.bmp
Binary file not shown.
2 changes: 1 addition & 1 deletion src/assets/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
5 changes: 0 additions & 5 deletions src/import/bmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,3 @@ pub fn parse(data: &[u8]) -> Result<Image, Box<dyn std::error::Error + Send>> {
data: out,
})
}

#[test]
fn test_image_loading() {
parse(include_bytes!("../../assets/blahaj1.bmp")).unwrap();
}

0 comments on commit c6cd4ca

Please sign in to comment.