summary refs log tree commit diff stats
path: root/config/bindings_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/bindings_test.go')
-rw-r--r--config/bindings_test.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/config/bindings_test.go b/config/bindings_test.go
index d07d65a..dab3b9f 100644
--- a/config/bindings_test.go
+++ b/config/bindings_test.go
@@ -55,7 +55,22 @@ func TestGetBinding(t *testing.T) {
 	}, BINDING_NOT_FOUND, "")
 
 	add("<C-a>", "c-a")
+	add("<C-Down>", ":next")
+	add("<C-PgUp>", ":prev")
+	add("<C-Enter>", ":open")
 	test([]KeyStroke{
 		{tcell.ModCtrl, tcell.KeyCtrlA, 0},
 	}, BINDING_FOUND, "c-a")
+	test([]KeyStroke{
+		{tcell.ModCtrl, tcell.KeyDown, 0},
+	}, BINDING_FOUND, ":next")
+	test([]KeyStroke{
+		{tcell.ModCtrl, tcell.KeyPgUp, 0},
+	}, BINDING_FOUND, ":prev")
+	test([]KeyStroke{
+		{tcell.ModCtrl, tcell.KeyPgDn, 0},
+	}, BINDING_NOT_FOUND, "")
+	test([]KeyStroke{
+		{tcell.ModCtrl, tcell.KeyEnter, 0},
+	}, BINDING_FOUND, ":open")
 }