diff options
author | Joe Wilm <joe@jwilm.com> | 2016-07-29 18:27:45 -0700 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-07-29 18:27:45 -0700 |
commit | 6d4e10e2b94e8257d76907d7e0b8ad0ab133fc43 (patch) | |
tree | 1a8df1128bab7547b44d29b289e7e766d26cebae /src/input.rs | |
parent | 90e343b36d9c18a627f8868022611cdb2d342ef0 (diff) | |
download | alacritty-6d4e10e2b94e8257d76907d7e0b8ad0ab133fc43.tar.gz alacritty-6d4e10e2b94e8257d76907d7e0b8ad0ab133fc43.zip |
Add test for input
Added a test while debugging arrow keys, no reason to delete it.
Diffstat (limited to 'src/input.rs')
-rw-r--r-- | src/input.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/input.rs b/src/input.rs index ecd5fdef..3dba1a64 100644 --- a/src/input.rs +++ b/src/input.rs @@ -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 + } } |