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
|
|
@ -51,6 +51,12 @@ mod tests {
|
|||
use data_forms::DataForm;
|
||||
use std::error::Error as StdError;
|
||||
|
||||
#[test]
|
||||
fn test_size() {
|
||||
assert_size!(URI, 48);
|
||||
assert_size!(MediaElement, 56);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_simple() {
|
||||
let elem: Element = "<media xmlns='urn:xmpp:media-element'/>".parse().unwrap();
|
||||
|
|
|
|||
Loading…
Reference in a new issue