From 3b0edf53e4f925ffa1e62bd2425928a388e6e05a Mon Sep 17 00:00:00 2001 From: Angelo Fallaria Date: Tue, 15 Feb 2022 12:44:07 +0800 Subject: [PATCH] test: remove unimplemented tests --- src/config.rs | 142 -------------------------------------------------- 1 file changed, 142 deletions(-) diff --git a/src/config.rs b/src/config.rs index 9c49612..8f3eaf3 100644 --- a/src/config.rs +++ b/src/config.rs @@ -905,78 +905,6 @@ k eval_config_test(contents, expected_result) } - #[test] - #[ignore] - fn test_homerow_special_keys() -> std::io::Result<()> { - // Quite difficult to find the evdev equivalnets for these. - let symbols: [&str; 31] = [ - "bracketleft", - "braceleft", - "bracketright", - "braceright", - "semicolon", - "colon", - "apostrophe", - "quotedbl", - "comma", - "less", - "period", - "greater", - "slash", - "question", - "backslash", - "bar", - "grave", - "asciitilde", - "at", - "numbersign", - "dollar", - "percent", - "asciicircum", - "ampersand", - "asterisk", - "parenleft", - "parenright", - "minus", - "underscore", - "equal", - "plus", - ]; - - // TODO: Find the appropiate key for each keysym - let keysyms: [evdev::Key; 18] = [ - evdev::Key::KEY_A, - evdev::Key::KEY_B, - evdev::Key::KEY_C, - evdev::Key::KEY_B, - evdev::Key::KEY_C, - evdev::Key::KEY_D, - evdev::Key::KEY_E, - evdev::Key::KEY_F, - evdev::Key::KEY_G, - evdev::Key::KEY_1, - evdev::Key::KEY_2, - evdev::Key::KEY_3, - evdev::Key::KEY_4, - evdev::Key::KEY_5, - evdev::Key::KEY_6, - evdev::Key::KEY_7, - evdev::Key::KEY_8, - evdev::Key::KEY_9, - ]; - - let mut contents = String::new(); - for symbol in &symbols { - contents.push_str(&format!("{}\n st\n", symbol)); - } - let contents = &contents; - - let expected_result: Vec = - keysyms.iter().map(|keysym| Hotkey::new(*keysym, vec![], "st".to_string())).collect(); - - eval_config_test(contents, expected_result) - } - #[test] fn test_homerow_special_keys_top() -> std::io::Result<()> { let symbols: [&str; 7] = @@ -1084,76 +1012,6 @@ super + shift + b eval_config_test(contents, vec![]) } - #[test] - #[ignore] - fn test_numrow_special_keys() -> std::io::Result<()> { - Ok(()) - } - - #[test] - #[ignore] - fn test_all_modifier_keys() -> std::io::Result<()> { - Ok(()) - } - - #[test] - #[ignore] - fn test_mod_keys_after_normal_keys() -> std::io::Result<()> { - Ok(()) - } - - #[test] - #[ignore] - fn test_plus_at_start_and_end_of_keybind() -> std::io::Result<()> { - Ok(()) - } - - // Bracket expansion example: - // `super + ctrl + {h,j,k,l}` - // ` bspc node -p {westh,south,north,west}` - #[test] - #[ignore] - fn test_bracket_expansion() -> std::io::Result<()> { - Ok(()) - } - - // `super + {1-9}` - // ` bspc desktop -f '^{1-9}'` - #[test] - #[ignore] - fn test_bracket_expansion_numbers() -> std::io::Result<()> { - Ok(()) - } - - #[test] - #[ignore] - fn test_unclosed_bracket_in_binding() -> std::io::Result<()> { - Ok(()) - } - - #[test] - #[ignore] - fn test_bracket_in_binding_but_not_in_command() -> std::io::Result<()> { - Ok(()) - } - - #[test] - #[ignore] - fn test_bracket_non_matching_counts() -> std::io::Result<()> { - Ok(()) - } - - #[test] - #[ignore] - fn test_multiple_brackets() -> std::io::Result<()> { - Ok(()) - } - - #[test] - #[ignore] - fn test_multiple_brackets_only_one_in_command() -> std::io::Result<()> { - Ok(()) - } #[test] fn test_extract_curly_brace() -> std::io::Result<()> {