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
|
|
@ -152,6 +152,11 @@ mod tests {
|
|||
use minidom::Element;
|
||||
use error::Error;
|
||||
|
||||
#[test]
|
||||
fn test_size() {
|
||||
assert_size!(ECaps2, 24);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_parse() {
|
||||
let elem: Element = "<c xmlns='urn:xmpp:caps'><hash xmlns='urn:xmpp:hashes:2' algo='sha-256'>K1Njy3HZBThlo4moOD5gBGhn0U0oK7/CbfLlIUDi6o4=</hash><hash xmlns='urn:xmpp:hashes:2' algo='sha3-256'>+sDTQqBmX6iG/X3zjt06fjZMBBqL/723knFIyRf0sg8=</hash></c>".parse().unwrap();
|
||||
|
|
|
|||
Loading…
Reference in a new issue