mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
Also test the size of IBB StreamId.
This commit is contained in:
parent
5e64dee0ed
commit
7a204cd182
1 changed files with 2 additions and 0 deletions
|
@ -80,6 +80,7 @@ mod tests {
|
||||||
#[cfg(target_pointer_width = "32")]
|
#[cfg(target_pointer_width = "32")]
|
||||||
#[test]
|
#[test]
|
||||||
fn test_size() {
|
fn test_size() {
|
||||||
|
assert_size!(StreamId, 12);
|
||||||
assert_size!(Stanza, 1);
|
assert_size!(Stanza, 1);
|
||||||
assert_size!(Open, 16);
|
assert_size!(Open, 16);
|
||||||
assert_size!(Data, 28);
|
assert_size!(Data, 28);
|
||||||
|
@ -89,6 +90,7 @@ mod tests {
|
||||||
#[cfg(target_pointer_width = "64")]
|
#[cfg(target_pointer_width = "64")]
|
||||||
#[test]
|
#[test]
|
||||||
fn test_size() {
|
fn test_size() {
|
||||||
|
assert_size!(StreamId, 24);
|
||||||
assert_size!(Stanza, 1);
|
assert_size!(Stanza, 1);
|
||||||
assert_size!(Open, 32);
|
assert_size!(Open, 32);
|
||||||
assert_size!(Data, 56);
|
assert_size!(Data, 56);
|
||||||
|
|
Loading…
Reference in a new issue