summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-04-13 14:40:43 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-04-13 14:40:43 +0900
commit1a9c282f7675e519292bf7b85a7ab7e03ec661f6 (patch)
tree88585376eb04f404cb293f24b777eaab2bb0fac2
parentfd1ba46f77532b4bc9b6af00db9dc8ecdf6e2b3f (diff)
Fix unit tests
-rw-r--r--src/options_test.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/options_test.go b/src/options_test.go
index 99873337..8e3b20f4 100644
--- a/src/options_test.go
+++ b/src/options_test.go
@@ -170,8 +170,8 @@ func TestParseKeys(t *testing.T) {
check(tui.CtrlM, "Return")
checkEvent(tui.Key(' '), "space")
check(tui.Tab, "tab")
- check(tui.BTab, "btab")
- check(tui.ESC, "esc")
+ check(tui.ShiftTab, "btab")
+ check(tui.Esc, "esc")
check(tui.Up, "up")
check(tui.Down, "down")
check(tui.Left, "left")
@@ -182,16 +182,16 @@ func TestParseKeys(t *testing.T) {
t.Error(11)
}
check(tui.Tab, "Ctrl-I")
- check(tui.PgUp, "page-up")
- check(tui.PgDn, "Page-Down")
+ check(tui.PageUp, "page-up")
+ check(tui.PageDown, "Page-Down")
check(tui.Home, "Home")
check(tui.End, "End")
- check(tui.AltBS, "Alt-BSpace")
- check(tui.SLeft, "shift-left")
- check(tui.SRight, "shift-right")
- check(tui.BTab, "shift-tab")
+ check(tui.AltBackspace, "Alt-BSpace")
+ check(tui.ShiftLeft, "shift-left")
+ check(tui.ShiftRight, "shift-right")
+ check(tui.ShiftTab, "shift-tab")
check(tui.CtrlM, "Enter")
- check(tui.BSpace, "bspace")
+ check(tui.Backspace, "bspace")
}
func TestParseKeysWithComma(t *testing.T) {