[test]config: restore test for 'none'

main
EdenQwQ 2 years ago
parent 7e60588717
commit 07c86a2c2b

@ -1178,6 +1178,24 @@ super + {a-}
eval_invalid_config_test(contents, ParseError::UnknownSymbol(2))
}
#[test]
fn test_none() -> std::io::Result<()> {
let contents = "
super + {_, shift} + b
{firefox, brave}";
eval_config_test(
contents,
vec![
Hotkey::new(evdev::Key::KEY_B, vec![Modifier::Super], "firefox".to_string()),
Hotkey::new(
evdev::Key::KEY_B,
vec![Modifier::Super, Modifier::Shift],
"brave".to_string(),
),
],
)
}
#[test]
#[ignore]
// TODO: handle multiple ranges

Loading…
Cancel
Save