bob, jid_prep, cert_management: Add size tests for 32-bit.

This commit is contained in:
Emmanuel Gil Peyrot 2019-09-17 17:13:18 +02:00
commit eac385700c
3 changed files with 33 additions and 2 deletions

View file

@ -46,6 +46,14 @@ mod tests {
use std::convert::TryFrom;
use std::str::FromStr;
#[cfg(target_pointer_width = "32")]
#[test]
fn test_size() {
assert_size!(JidPrepQuery, 12);
assert_size!(JidPrepResponse, 40);
}
#[cfg(target_pointer_width = "64")]
#[test]
fn test_size() {
assert_size!(JidPrepQuery, 24);