include!("macro/macro.rs"); setup!(#[enum_tools(IntoStr)];); #[test] fn into_str_trait_gapless() { use eg::EG; assert_eq!(>::into(EG::A), "A*"); assert_eq!(>::into(EG::B), "B"); assert_eq!(>::into(EG::C), "C"); assert_eq!(>::into(EG::D), "D"); } #[test] fn into_str_trait_with_holes() { use eh::EH; assert_eq!(>::into(EH::A), "A*"); assert_eq!(>::into(EH::B), "B"); assert_eq!(>::into(EH::C), "C"); assert_eq!(>::into(EH::D), "D"); }