use rsanim::TransitionTrigger; #[test] fn clone() { let trigger = TransitionTrigger::::End; assert!(matches!(trigger.clone(), TransitionTrigger::End)); } #[test] fn debug_end() { assert_eq!(format!("{:?}", TransitionTrigger::::End), "End"); } #[test] fn debug_condition() { assert_eq!( format!( "{:?}", TransitionTrigger::::Condition(Box::new(|_| true)) ), "Condition" ); }