Test struct sizes on 32-bit too.
This commit is contained in:
parent
40aedcf184
commit
7a2dcbee01
37 changed files with 338 additions and 0 deletions
|
|
@ -85,6 +85,16 @@ mod tests {
|
|||
use std::str::FromStr;
|
||||
use compare_elements::NamespaceAwareCompare;
|
||||
|
||||
#[cfg(target_pointer_width = "32")]
|
||||
#[test]
|
||||
fn test_size() {
|
||||
assert_size!(Group, 12);
|
||||
assert_size!(Subscription, 1);
|
||||
assert_size!(Item, 64);
|
||||
assert_size!(Roster, 24);
|
||||
}
|
||||
|
||||
#[cfg(target_pointer_width = "64")]
|
||||
#[test]
|
||||
fn test_size() {
|
||||
assert_size!(Group, 24);
|
||||
|
|
|
|||
Loading…
Reference in a new issue