use abin::{Bin, SBin}; #[test] fn bin_size() { // should have a size of 4 words let word_size = core::mem::size_of::(); let bin_size = core::mem::size_of::(); assert_eq!(word_size * 4, bin_size) } #[test] fn sync_bin_size() { // should have a size of 4 words let word_size = core::mem::size_of::(); let sync_bin_size = core::mem::size_of::(); assert_eq!(word_size * 4, sync_bin_size); assert_eq!(core::mem::size_of::(), sync_bin_size); } #[test] fn bin_align() { let word_align = core::mem::align_of::(); let bin_align = core::mem::align_of::(); assert_eq!(word_align, bin_align) } #[test] fn sync_bin_align() { let word_align = core::mem::align_of::(); let bin_align = core::mem::align_of::(); assert_eq!(word_align, bin_align) }