use crate::*; //#[test] fn test_parse_key () { ////use KeyModifiers as Mods; //let _test = |x: &str, y|assert_eq!(KeyMatcher::new(x).build(), Some(Event::Key(y))); ////test(":x", ////KeyEvent::new(KeyCode::Char('x'), Mods::NONE)); ////test(":ctrl-x", ////KeyEvent::new(KeyCode::Char('x'), Mods::CONTROL)); ////test(":alt-x", ////KeyEvent::new(KeyCode::Char('x'), Mods::ALT)); ////test(":shift-x", ////KeyEvent::new(KeyCode::Char('x'), Mods::SHIFT)); ////test(":ctrl-alt-shift-x", ////KeyEvent::new(KeyCode::Char('x'), Mods::CONTROL | Mods::ALT | Mods::SHIFT )); //}