use nmbr_identities::{MulIdent}; #[test] fn test_mul_ident_for_all_builtin_types() { let t_usize: usize = MulIdent::create(); let t_u8: u8 = MulIdent::create(); let t_u16: u16 = MulIdent::create(); let t_u32: u32 = MulIdent::create(); let t_u64: u64 = MulIdent::create(); let t_isize: isize = MulIdent::create(); let t_i8: i8 = MulIdent::create(); let t_i16: i16 = MulIdent::create(); let t_i32: i32 = MulIdent::create(); let t_i64: i64 = MulIdent::create(); let t_f32: f32 = MulIdent::create(); let t_f64: f64 = MulIdent::create(); assert_eq!(t_usize, 1usize); assert_eq!(t_usize.is_mul_ident(), true); assert_eq!(t_u8, 1u8); assert_eq!(t_u8.is_mul_ident(), true); assert_eq!(t_u16, 1u16); assert_eq!(t_u16.is_mul_ident(), true); assert_eq!(t_u32, 1u32); assert_eq!(t_u32.is_mul_ident(), true); assert_eq!(t_u64, 1u64); assert_eq!(t_u64.is_mul_ident(), true); assert_eq!(t_isize, 1isize); assert_eq!(t_isize.is_mul_ident(), true); assert_eq!(t_i8, 1i8); assert_eq!(t_i8.is_mul_ident(), true); assert_eq!(t_i16, 1i16); assert_eq!(t_i16.is_mul_ident(), true); assert_eq!(t_i32, 1i32); assert_eq!(t_i32.is_mul_ident(), true); assert_eq!(t_i64, 1i64); assert_eq!(t_i64.is_mul_ident(), true); assert_eq!(t_f32, 1.0f32); assert_eq!(t_f32.is_mul_ident(), true); assert_eq!(t_f64, 1.0f64); assert_eq!(t_f64.is_mul_ident(), true); }