tune: Add size checks for all elements.
This commit is contained in:
parent
77920e5f46
commit
0ef4ba7e55
1 changed files with 15 additions and 1 deletions
16
src/tune.rs
16
src/tune.rs
|
@ -169,13 +169,27 @@ mod tests {
|
|||
#[test]
|
||||
#[ignore]
|
||||
fn test_size() {
|
||||
assert_size!(Tune, 0);
|
||||
assert_size!(Tune, 64);
|
||||
assert_size!(Artist, 12);
|
||||
assert_size!(Length, 2);
|
||||
assert_size!(Rating, 1);
|
||||
assert_size!(Source, 12);
|
||||
assert_size!(Title, 12);
|
||||
assert_size!(Track, 12);
|
||||
assert_size!(Uri, 12);
|
||||
}
|
||||
|
||||
#[cfg(target_pointer_width = "64")]
|
||||
#[test]
|
||||
fn test_size() {
|
||||
assert_size!(Tune, 128);
|
||||
assert_size!(Artist, 24);
|
||||
assert_size!(Length, 2);
|
||||
assert_size!(Rating, 1);
|
||||
assert_size!(Source, 24);
|
||||
assert_size!(Title, 24);
|
||||
assert_size!(Track, 24);
|
||||
assert_size!(Uri, 24);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Reference in a new issue