diff --git a/src/bob.rs b/src/bob.rs index 704ed0c9..edb0c891 100644 --- a/src/bob.rs +++ b/src/bob.rs @@ -95,8 +95,8 @@ mod tests { #[cfg(target_pointer_width = "32")] #[test] fn test_size() { - assert_size!(ContentId, 24); - assert_size!(Data, 24); + assert_size!(ContentId, 28); + assert_size!(Data, 60); } #[cfg(target_pointer_width = "64")] diff --git a/src/cert_management.rs b/src/cert_management.rs index a68909eb..7ed5ca7a 100644 --- a/src/cert_management.rs +++ b/src/cert_management.rs @@ -118,9 +118,32 @@ mod tests { use std::str::FromStr; use crate::ns; + #[cfg(target_pointer_width = "32")] + #[test] + fn test_size() { + assert_size!(Append, 28); + assert_size!(Disable, 12); + assert_size!(Revoke, 12); + assert_size!(ListCertsQuery, 0); + assert_size!(ListCertsResponse, 12); + assert_size!(Item, 40); + assert_size!(Resource, 12); + assert_size!(Users, 12); + assert_size!(Cert, 12); + } + + #[cfg(target_pointer_width = "64")] #[test] fn test_size() { assert_size!(Append, 56); + assert_size!(Disable, 24); + assert_size!(Revoke, 24); + assert_size!(ListCertsQuery, 0); + assert_size!(ListCertsResponse, 24); + assert_size!(Item, 80); + assert_size!(Resource, 24); + assert_size!(Users, 24); + assert_size!(Cert, 24); } #[test] diff --git a/src/jid_prep.rs b/src/jid_prep.rs index d151f6c0..ba8c9d84 100644 --- a/src/jid_prep.rs +++ b/src/jid_prep.rs @@ -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);