Skip to content

Commit

Permalink
Accept env vars in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mptre committed Jul 18, 2017
1 parent 975e393 commit 369eb66
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 309 deletions.
25 changes: 3 additions & 22 deletions tests/22.t
Original file line number Diff line number Diff line change
@@ -1,30 +1,11 @@
description: vertical scroll down
keys: \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \\n # DOWN ENTER
keys: \016 \016 \016 \016 \\n # DOWN ENTER
env: LINES=5
stdin:
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
stdout:
25
05
25 changes: 3 additions & 22 deletions tests/23.t
Original file line number Diff line number Diff line change
@@ -1,30 +1,11 @@
description: vertical scroll down passed last choice
keys: \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \\n # DOWN ENTER
keys: \016 \016 \016 \016 \016 \\n # DOWN ENTER
env: LINES=5
stdin:
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
stdout:
25
05
23 changes: 2 additions & 21 deletions tests/24.t
Original file line number Diff line number Diff line change
@@ -1,30 +1,11 @@
description: vertical scroll up
keys: \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \\n # DOWN UP ENTER
keys: \016 \016 \016 \016 \020 \020 \020 \020 \\n # DOWN UP ENTER
env: LINES=5
stdin:
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
stdout:
01
23 changes: 2 additions & 21 deletions tests/25.t
Original file line number Diff line number Diff line change
@@ -1,30 +1,11 @@
description: vertical scroll up passed first choice
keys: \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \020 \\n # DOWN UP ENTER
keys: \016 \016 \016 \016 \020 \020 \020 \020 \020 \\n # DOWN UP ENTER
env: LINES=5
stdin:
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
stdout:
01
23 changes: 2 additions & 21 deletions tests/26.t
Original file line number Diff line number Diff line change
@@ -1,30 +1,11 @@
description: changing the query resets vertical scroll
keys: \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 \016 0 \\n #DOWN ENTER
keys: \016 \016 \016 \016 \016 0 \\n #DOWN ENTER
env: LINES=5
stdin:
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
stdout:
01
44 changes: 2 additions & 42 deletions tests/27.t
Original file line number Diff line number Diff line change
@@ -1,51 +1,11 @@
description: page down
keys: \033[6~ \\n # PAGE_DOWN ENTER
env: LINES=5
stdin:
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
stdout:
24
05
43 changes: 2 additions & 41 deletions tests/28.t
Original file line number Diff line number Diff line change
@@ -1,51 +1,12 @@
description: page down, first choice not selected
keys: \016 \033[6~ \\n # DOWN PAGE_DOWN ENTER
env: LINES=5
stdin:
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
stdout:
25
06
22 changes: 2 additions & 20 deletions tests/29.t
Original file line number Diff line number Diff line change
@@ -1,28 +1,10 @@
description: page down, all choices fit on one page
keys: \033[6~ \\n # PAGE_DOWN ENTER
env: LINES=5
stdin:
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
stdout:
23
04
40 changes: 2 additions & 38 deletions tests/30.t
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
description: page up
keys: \033[6~ \033[6~ \033[5~ \\n # PAGE_DOWN PAGE_UP ENTER
env: LINES=5
stdin:
01
02
Expand All @@ -10,42 +11,5 @@ stdin:
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
stdout:
23
05
Loading

0 comments on commit 369eb66

Please sign in to comment.