Add test for input

Added a test while debugging arrow keys, no reason to delete it.
This commit is contained in:
Joe Wilm 2016-07-29 18:27:45 -07:00
parent 90e343b36d
commit 6d4e10e2b9
1 changed files with 8 additions and 0 deletions

View File

@ -449,4 +449,12 @@ mod tests {
mode: mode::NONE,
mods: modifier::NONE
}
test_process_binding! {
name: process_binding_appcursormode_appkeypadmode_nomod_require_appcursor,
binding: Binding { mods: modifier::ANY, send: "\x1bOD", mode: mode::APP_CURSOR, notmode: mode::NONE },
expect: Some(String::from("\x1bOD")),
mode: mode::APP_CURSOR | mode::APP_KEYPAD,
mods: modifier::NONE
}
}