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