#[test] fn test_messages() { let messages = makai::utils::messages::Messages::new(); messages.push(String::from("hello")); messages.push(0usize); messages.push(String::from("world")); messages.push(1usize); assert!(messages.check_activity()); assert!(!messages.check_activity()); assert_eq!( messages.get::(), vec![String::from("hello"), String::from("world")] ); assert!(messages.get::().is_empty()); assert_eq!(messages.get::(), vec![0usize, 1usize]); assert!(messages.get::().is_empty()); assert!(messages.check_activity()); assert!(!messages.check_activity()); }