Test the size of every struct defined here.
This commit is contained in:
parent
9cb4f00341
commit
40aedcf184
43 changed files with 295 additions and 0 deletions
|
|
@ -98,6 +98,14 @@ generate_empty_element!(
|
|||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_size() {
|
||||
assert_size!(BlocklistRequest, 0);
|
||||
assert_size!(BlocklistResult, 24);
|
||||
assert_size!(Block, 24);
|
||||
assert_size!(Unblock, 24);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_simple() {
|
||||
let elem: Element = "<blocklist xmlns='urn:xmpp:blocking'/>".parse().unwrap();
|
||||
|
|
|
|||
Loading…
Reference in a new issue