From 99152e2223186175b86e50cff58e10eda90cde4e Mon Sep 17 00:00:00 2001 From: Jenz Date: Wed, 5 Jul 2017 23:25:16 +0200 Subject: [PATCH] Add missing tests for Emacs keys --- Makefile.am | 4 +++- tests/49.t | 9 +++++++++ tests/50.t | 9 +++++++++ tests/51.t | 11 +++++++++++ tests/52.t | 11 +++++++++++ tests/53.t | 10 ++++++++++ tests/54.t | 15 +++++++++++++++ tests/55.t | 12 ++++++++++++ tests/56.t | 10 ++++++++++ 9 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 tests/49.t create mode 100644 tests/50.t create mode 100644 tests/51.t create mode 100644 tests/52.t create mode 100644 tests/53.t create mode 100644 tests/54.t create mode 100644 tests/55.t create mode 100644 tests/56.t diff --git a/Makefile.am b/Makefile.am index f9ac8a5b..4cf5ca74 100644 --- a/Makefile.am +++ b/Makefile.am @@ -14,7 +14,9 @@ TESTS=tests/01.t tests/02.t tests/03.t tests/04.t tests/05.t tests/06.t \ tests/25.t tests/26.t tests/27.t tests/28.t tests/29.t tests/30.t \ tests/31.t tests/32.t tests/33.t tests/34.t tests/35.t tests/36.t \ tests/37.t tests/38.t tests/39.t tests/40.t tests/41.t tests/42.t \ - tests/43.t tests/44.t tests/45.t tests/46.t tests/47.t tests/48.t + tests/43.t tests/44.t tests/45.t tests/46.t tests/47.t tests/48.t \ + tests/49.t tests/50.t tests/51.t tests/52.t tests/53.t tests/54.t \ + tests/55.t tests/56.t TEST_EXTENSIONS=.t T_LOG_COMPILER=$(top_srcdir)/tests/pick-test.sh check_PROGRAMS=tests/pick-test diff --git a/tests/49.t b/tests/49.t new file mode 100644 index 00000000..cad62743 --- /dev/null +++ b/tests/49.t @@ -0,0 +1,9 @@ +description: Alt-> alias for end, selects the last choice +keys: \033> \\n # END ENTER +stdin: +1 +2 +3 +4 +stdout: +4 diff --git a/tests/50.t b/tests/50.t new file mode 100644 index 00000000..85969580 --- /dev/null +++ b/tests/50.t @@ -0,0 +1,9 @@ +description: Alt-< alias for home, selects the first choice +keys: \016 \033< \\n # DOWN HOME ENTER +stdin: +1 +2 +3 +4 +stdout: +1 diff --git a/tests/51.t b/tests/51.t new file mode 100644 index 00000000..8de2b3ac --- /dev/null +++ b/tests/51.t @@ -0,0 +1,11 @@ +description: Ctrl-V alias for page down +keys: \026 \\n # PAGE_DOWN ENTER +env: LINES=5 +stdin: +01 +02 +03 +04 +05 +stdout: +05 diff --git a/tests/52.t b/tests/52.t new file mode 100644 index 00000000..75b4277d --- /dev/null +++ b/tests/52.t @@ -0,0 +1,11 @@ +description: Ctrl-V alias for page down, first choice not selected +keys: \016 \026 \\n # DOWN PAGE_DOWN ENTER +stdin: +01 +02 +03 +04 +05 +06 +stdout: +06 diff --git a/tests/53.t b/tests/53.t new file mode 100644 index 00000000..f631375d --- /dev/null +++ b/tests/53.t @@ -0,0 +1,10 @@ +description: Ctrl-V alias for page down, all choices fit on one page +keys: \026 \\n # PAGE_DOWN ENTER +env: LINES=5 +stdin: +01 +02 +03 +04 +stdout: +04 diff --git a/tests/54.t b/tests/54.t new file mode 100644 index 00000000..fb50aae0 --- /dev/null +++ b/tests/54.t @@ -0,0 +1,15 @@ +description: Alt-V alias for page up +keys: \026 \026 \033v \\n # PAGE_DOWN PAGE_DOWN PAGE_UP ENTER +env: LINES=5 +stdin: +01 +02 +03 +04 +05 +06 +07 +08 +09 +stdout: +05 diff --git a/tests/55.t b/tests/55.t new file mode 100644 index 00000000..d93a8069 --- /dev/null +++ b/tests/55.t @@ -0,0 +1,12 @@ +description: Alt-V alias for page up, selected choice below the first page +keys: \026 \016 \033v \\n # PAGE_DOWN DOWN PAGE_UP ENTER +env: LINES=5 +stdin: +01 +02 +03 +04 +05 +06 +stdout: +02 diff --git a/tests/56.t b/tests/56.t new file mode 100644 index 00000000..4c13b4fb --- /dev/null +++ b/tests/56.t @@ -0,0 +1,10 @@ +description: Alt-V alias for page up, all choices fit on one page +keys: \026 \033v \\n # PAGE_DOWN PAGE_UP ENTER +env: LINES=5 +stdin: +01 +02 +03 +04 +stdout: +01