Test to ensure that usize can hold a 32-bit offset.

This commit is contained in:
KAMADA Ken'ichi 2016-11-03 18:58:32 +09:00
parent 6f9be2c2a9
commit 4175aa5bc4
1 changed files with 11 additions and 0 deletions

View File

@ -44,3 +44,14 @@ mod tag;
mod tiff;
mod util;
mod value;
#[cfg(test)]
mod tests {
use std::mem;
// This library assumes that usize is not smaller than u32.
#[test]
fn size_of_usize() {
assert!(mem::size_of::<usize>() >= mem::size_of::<u32>());
}
}