зеркало из
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
Этот коммит содержится в:
@@ -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);
|
||||
|
||||
Ссылка в новой задаче
Block a user