Skip to content

Commit

Permalink
Add missing tests for Emacs keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenz authored and mptre committed Jul 18, 2017
1 parent 369eb66 commit 99152e2
Show file tree
Hide file tree
Showing 9 changed files with 90 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions tests/49.t
Original file line number Diff line number Diff line change
@@ -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
9 changes: 9 additions & 0 deletions tests/50.t
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions tests/51.t
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions tests/52.t
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions tests/53.t
Original file line number Diff line number Diff line change
@@ -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
15 changes: 15 additions & 0 deletions tests/54.t
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions tests/55.t
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions tests/56.t
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 99152e2

Please sign in to comment.