Test struct sizes on 32-bit too.

This commit is contained in:
Emmanuel Gil Peyrot 2018-10-28 13:10:48 +01:00
commit 7a2dcbee01
37 changed files with 338 additions and 0 deletions

View file

@ -215,6 +215,20 @@ mod tests {
use try_from::TryFrom;
use minidom::Element;
#[cfg(target_pointer_width = "32")]
#[test]
fn test_size() {
assert_size!(Mechanism, 1);
assert_size!(Auth, 16);
assert_size!(Challenge, 12);
assert_size!(Response, 12);
assert_size!(Abort, 0);
assert_size!(Success, 12);
assert_size!(DefinedCondition, 1);
assert_size!(Failure, 16);
}
#[cfg(target_pointer_width = "64")]
#[test]
fn test_size() {
assert_size!(Mechanism, 1);