From 0ef4ba7e55f87ee5f6a439130bd7757f88a9ac4b Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 5 Sep 2019 17:58:45 +0200 Subject: [PATCH] tune: Add size checks for all elements. --- src/tune.rs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/tune.rs b/src/tune.rs index 7a0b9f3..1bbb436 100644 --- a/src/tune.rs +++ b/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]