#![allow(bad_style)] //! Tests Clone, Copy, Pod, Zeroable, Default (to zero), and PartialEq use hektor::*; use lokacore::{Pod, Zeroable}; fn is_clone(_t: T) {} fn is_copy(_t: T) {} fn is_pod(_t: T) {} fn is_zeroable() -> T { T::zeroed() } fn is_default() -> T { T::default() } #[test] fn Vec2_cl_cp_pod_0_def_peq() { is_clone(Vec2::default()); is_copy(Vec2::default()); is_pod(Vec2::default()); // assert!(is_zeroable::() == is_default::()); } #[test] fn Vec3_cl_cp_pod_0_def_peq() { is_clone(Vec3::default()); is_copy(Vec3::default()); is_pod(Vec3::default()); // assert!(is_zeroable::() == is_default::()); } #[test] fn Vec4_cl_cp_pod_0_def_peq() { is_clone(Vec4::default()); is_copy(Vec4::default()); is_pod(Vec4::default()); // assert!(is_zeroable::() == is_default::()); } #[test] fn Mat2_cl_cp_pod_0_def_peq() { is_clone(Mat2::default()); is_copy(Mat2::default()); is_pod(Mat2::default()); // assert!(is_zeroable::() == is_default::()); } #[test] fn Mat3_cl_cp_pod_0_def_peq() { is_clone(Mat3::default()); is_copy(Mat3::default()); is_pod(Mat3::default()); // assert!(is_zeroable::() == is_default::()); } #[test] fn Mat4_cl_cp_pod_0_def_peq() { is_clone(Mat4::default()); is_copy(Mat4::default()); is_pod(Mat4::default()); // assert!(is_zeroable::() == is_default::()); } #[test] fn Quat_cl_cp_pod_0_def_peq() { is_clone(Quat::default()); is_copy(Quat::default()); is_pod(Quat::default()); // assert!(is_zeroable::() == is_default::()); }