summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorcc <cc@localhost>2025-08-20 18:17:32 -0700
committercc <cc@localhost>2025-08-20 18:17:37 -0700
commit03d5bfae04eef01142436d098fe51c6dafeda39c (patch)
tree745f2ad9882e9115e6307f1de65a33b69203fb3d /src/lib.rs
parentb54ea6a51b16642dc59b2d2ba4d747cf683ec418 (diff)
Capture Status Result
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index e1ee558..4649f0c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -31,7 +31,7 @@ mod tests {
fn tiff_width_test() {
tiff::ignore_warnings();
if let Some(t_handle) = tiff::open(TEST_IMAGE_PATH) {
- let width = tiff::get_image_width(t_handle);
+ let width = tiff::get_image_width(t_handle).expect("Image should have width!");
assert!(width > 0);
tiff::close(t_handle);
} else {
@@ -43,7 +43,7 @@ mod tests {
fn tiff_height_test() {
tiff::ignore_warnings();
if let Some(t_handle) = tiff::open(TEST_IMAGE_PATH) {
- let height = tiff::get_image_height(t_handle);
+ let height = tiff::get_image_height(t_handle).expect("Image should have height!");
assert!(height > 0);
tiff::close(t_handle);
} else {