#![allow(bad_style)] use core::mem::{align_of, size_of}; use hektor::*; #[test] fn Vec2_size_align() { assert_eq!(size_of::(), 8); assert_eq!(size_of::(), size_of::() * 2); // assert_eq!(align_of::(), 4); assert_eq!(align_of::(), align_of::()); } #[test] fn Vec3_size_align() { assert_eq!(size_of::(), 16); assert_eq!(size_of::(), size_of::() * 4); assert_eq!(size_of::(), size_of::()); // assert_eq!(align_of::(), 16); assert_eq!(align_of::(), size_of::()); } #[test] fn Vec4_size_align() { assert_eq!(size_of::(), 16); assert_eq!(size_of::(), size_of::() * 4); // assert_eq!(align_of::(), 16); } #[test] fn Mat2_size_align() { assert_eq!(size_of::(), 16); assert_eq!(size_of::(), size_of::() * 4); assert_eq!(size_of::(), size_of::() * 2); // assert_eq!(align_of::(), 4); assert_eq!(align_of::(), align_of::()); } #[test] fn Mat3_size_align() { assert_eq!(size_of::(), 48); assert_eq!(size_of::(), size_of::() * 12); assert_eq!(size_of::(), size_of::() * 3); // assert_eq!(align_of::(), 16); assert_eq!(align_of::(), align_of::()); } #[test] fn Mat4_size_align() { assert_eq!(size_of::(), 64); assert_eq!(size_of::(), size_of::() * 16); assert_eq!(size_of::(), size_of::() * 4); // assert_eq!(align_of::(), 16); assert_eq!(align_of::(), align_of::()); } #[test] fn Quat_size_align() { assert_eq!(size_of::(), 16); assert_eq!(size_of::(), size_of::() * 4); // assert_eq!(align_of::(), 16); }