Also test the size of IBB StreamId.

This commit is contained in:
Emmanuel Gil Peyrot 2018-12-18 15:44:07 +01:00
parent 5e64dee0ed
commit 7a204cd182

View file

@ -80,6 +80,7 @@ mod tests {
#[cfg(target_pointer_width = "32")]
#[test]
fn test_size() {
assert_size!(StreamId, 12);
assert_size!(Stanza, 1);
assert_size!(Open, 16);
assert_size!(Data, 28);
@ -89,6 +90,7 @@ mod tests {
#[cfg(target_pointer_width = "64")]
#[test]
fn test_size() {
assert_size!(StreamId, 24);
assert_size!(Stanza, 1);
assert_size!(Open, 32);
assert_size!(Data, 56);