1
0
зеркало из https://github.com/glebtv/tui-textarea.git synced 2026-08-28 11:36:17 +03:00

fix tests for termion support when using old version of termion

Этот коммит содержится в:
rhysd
2024-08-08 23:55:25 +09:00
родитель 3fb0a78a4c
Коммит 49c90f0983

Просмотреть файл

@@ -158,9 +158,13 @@ mod tests {
(KeyEvent::F(1), input(Key::F(1), false, false, false)),
(KeyEvent::BackTab, input(Key::Tab, false, false, false)),
(KeyEvent::Null, input(Key::Null, false, false, false)),
#[cfg(feature = "termion")]
(KeyEvent::ShiftDown, input(Key::Down, false, false, true)),
#[cfg(feature = "termion")]
(KeyEvent::AltUp, input(Key::Up, false, true, false)),
#[cfg(feature = "termion")]
(KeyEvent::CtrlLeft, input(Key::Left, true, false, false)),
#[cfg(feature = "termion")]
(KeyEvent::CtrlHome, input(Key::Home, true, false, false)),
] {
assert_eq!(Input::from(from), to, "{:?} -> {:?}", from, to);