Skip to content

Commit

Permalink
fix: fixed tests for image_format
Browse files Browse the repository at this point in the history
  • Loading branch information
SalOne22 committed Jan 20, 2024
1 parent 15aebe6 commit 454f5c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/image_format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ mod tests {

#[test]
fn to_unknown() {
let img_format = ImageFormat::from_ext("bmp");
let img_format = ImageFormat::from_ext("qex");
assert!(img_format.is_err());
assert_eq!(
img_format.unwrap_err(),
ImageFormatError::Unknown("bmp".to_string())
ImageFormatError::Unknown("qex".to_string())
);
}

Expand Down

0 comments on commit 454f5c8

Please sign in to comment.