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
13
src/mam.rs
13
src/mam.rs
|
|
@ -191,6 +191,19 @@ mod tests {
|
|||
use super::*;
|
||||
use std::str::FromStr;
|
||||
|
||||
#[cfg(target_pointer_width = "32")]
|
||||
#[test]
|
||||
fn test_size() {
|
||||
assert_size!(QueryId, 12);
|
||||
assert_size!(Query, 116);
|
||||
assert_size!(Result_, 228);
|
||||
assert_size!(Complete, 1);
|
||||
assert_size!(Fin, 44);
|
||||
assert_size!(DefaultPrefs, 1);
|
||||
assert_size!(Prefs, 28);
|
||||
}
|
||||
|
||||
#[cfg(target_pointer_width = "64")]
|
||||
#[test]
|
||||
fn test_size() {
|
||||
assert_size!(QueryId, 24);
|
||||
|
|
|
|||
Loading…
Reference in a new issue