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
|
|
@ -76,6 +76,14 @@ mod tests {
|
|||
use error::Error;
|
||||
use std::error::Error as StdError;
|
||||
|
||||
#[test]
|
||||
fn test_size() {
|
||||
assert_size!(Stanza, 1);
|
||||
assert_size!(Open, 32);
|
||||
assert_size!(Data, 56);
|
||||
assert_size!(Close, 24);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_simple() {
|
||||
let sid = StreamId(String::from("coucou"));
|
||||
|
|
|
|||
Loading…
Reference in a new issue