diff options
author | cc <cc@localhost> | 2025-08-20 17:19:05 -0700 |
---|---|---|
committer | cc <cc@localhost> | 2025-08-20 17:19:05 -0700 |
commit | e38b77ca4a0bef6e5ae0a28d445929e9af2ddd05 (patch) | |
tree | 47278c28099c2ffb1a3ed1345b921b7d2c9125d5 /src/lib.rs | |
parent | 950a720a5c0b43199877b3727f0d06412f8a12fb (diff) |
Width and Height Bindings
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -24,4 +24,30 @@ mod tests { assert!(false); } } + + #[test] + fn tiff_height_test() { + tiff::ignore_warnings(); + if let Some(t_handle) = tiff::open("../test.tif") { + let height = tiff::get_height(t_handle); + assert!(height > 0); + println!("{:?}", height); + tiff::close(t_handle); + } else { + assert!(false); + } + } + + #[test] + fn tiff_width_test() { + tiff::ignore_warnings(); + if let Some(t_handle) = tiff::open("../test.tif") { + let width = tiff::get_width(t_handle); + assert!(width > 0); + println!("{:?}", width); + tiff::close(t_handle); + } else { + assert!(false); + } + } } |