include!("macro/macro.rs"); setup!(#[enum_tools(iter(mode = "next_and_back"), range)];); #[test] fn range_next_and_back_gapless() { use eg::EG; assert_eq!( EG::range(EG::A, EG::D).collect::>(), vec![EG::A, EG::B, EG::C, EG::D] ); let _ = EG::iter(); // to silence dead-code warning } #[test] fn range_next_and_back_with_holes() { use eh::EH; assert_eq!( EH::range(EH::A, EH::B).collect::>(), vec![EH::A, EH::D, EH::C, EH::B] ); let _ = EH::iter(); // to silence dead-code warning }