Test the size of every struct defined here.

This commit is contained in:
Emmanuel Gil Peyrot 2018-10-26 14:26:16 +02:00
commit 40aedcf184
43 changed files with 295 additions and 0 deletions

View file

@ -85,6 +85,14 @@ mod tests {
use std::str::FromStr;
use compare_elements::NamespaceAwareCompare;
#[test]
fn test_size() {
assert_size!(Group, 24);
assert_size!(Subscription, 1);
assert_size!(Item, 128);
assert_size!(Roster, 48);
}
#[test]
fn test_get() {
let elem: Element = "<query xmlns='jabber:iq:roster'/>".parse().unwrap();