tune: Add size checks for all elements.

This commit is contained in:
Emmanuel Gil Peyrot 2019-09-05 17:58:45 +02:00
parent 77920e5f46
commit 0ef4ba7e55

View file

@ -169,13 +169,27 @@ mod tests {
#[test] #[test]
#[ignore] #[ignore]
fn test_size() { 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")] #[cfg(target_pointer_width = "64")]
#[test] #[test]
fn test_size() { fn test_size() {
assert_size!(Tune, 128); 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] #[test]