Skip to content

Commit 637ef73

Browse files
committed
Add recursion test
1 parent 2eba599 commit 637ef73

17 files changed

+266
-0
lines changed

tests/recursion.vim

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
3+
" TODO: ensure that the configuration is already set
4+
5+
let g:EasyGrepMode=0
6+
let g:EasyGrepRecursive=1
7+
GrepRoot recursion
8+
9+
ResultListTag GrepAdd -I c
10+
GrepAdd -I c
11+
ResultListTag GrepAdd -I C
12+
GrepAdd -I C
13+
14+
cclose
15+
exe "ResultListSave ".testname.".out"
16+
quit!
17+
18+

tests/recursion/a/alphabet.in

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
a
2+
b
3+
c
4+
d
5+
e
6+
f
7+
g
8+
h
9+
i
10+
j
11+
k
12+
l
13+
m
14+
n
15+
o
16+
p
17+
q
18+
r
19+
s
20+
t
21+
u
22+
v
23+
w
24+
x
25+
y
26+
z
27+
A
28+
B
29+
C
30+
D
31+
E
32+
F
33+
G
34+
H
35+
I
36+
J
37+
K
38+
L
39+
M
40+
N
41+
O
42+
P
43+
Q
44+
R
45+
S
46+
T
47+
U
48+
V
49+
W
50+
X
51+
Y
52+
Z

tests/recursion/b/alphabet.in

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
a
2+
b
3+
c
4+
d
5+
e
6+
f
7+
g
8+
h
9+
i
10+
j
11+
k
12+
l
13+
m
14+
n
15+
o
16+
p
17+
q
18+
r
19+
s
20+
t
21+
u
22+
v
23+
w
24+
x
25+
y
26+
z
27+
A
28+
B
29+
C
30+
D
31+
E
32+
F
33+
G
34+
H
35+
I
36+
J
37+
K
38+
L
39+
M
40+
N
41+
O
42+
P
43+
Q
44+
R
45+
S
46+
T
47+
U
48+
V
49+
W
50+
X
51+
Y
52+
Z

tests/recursion/c/alphabet.in

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
a
2+
b
3+
c
4+
d
5+
e
6+
f
7+
g
8+
h
9+
i
10+
j
11+
k
12+
l
13+
m
14+
n
15+
o
16+
p
17+
q
18+
r
19+
s
20+
t
21+
u
22+
v
23+
w
24+
x
25+
y
26+
z
27+
A
28+
B
29+
C
30+
D
31+
E
32+
F
33+
G
34+
H
35+
I
36+
J
37+
K
38+
L
39+
M
40+
N
41+
O
42+
P
43+
Q
44+
R
45+
S
46+
T
47+
U
48+
V
49+
W
50+
X
51+
Y
52+
Z

tests/recursion_ack.ok

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
|1 col 1| GrepAdd -I c
2+
recursion\a\alphabet.in|3 col 0| 1:c
3+
recursion\b\alphabet.in|3 col 0| 1:c
4+
recursion\c\alphabet.in|3 col 0| 1:c
5+
|1 col 1| GrepAdd -I C
6+
recursion\a\alphabet.in|29 col 0| 1:C
7+
recursion\b\alphabet.in|29 col 0| 1:C
8+
recursion\c\alphabet.in|29 col 0| 1:C

tests/recursion_ack.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
let testname="recursion_ack"
3+
GrepProgram ack
4+
5+
source recursion.vim
6+

tests/recursion_ag.ok

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
|1 col 1| GrepAdd -I c
2+
recursion\a\alphabet.in|3 col 0| 1:c
3+
recursion\b\alphabet.in|3 col 0| 1:c
4+
recursion\c\alphabet.in|3 col 0| 1:c
5+
|1 col 1| GrepAdd -I C
6+
recursion\a\alphabet.in|29 col 0| 1:C
7+
recursion\b\alphabet.in|29 col 0| 1:C
8+
recursion\c\alphabet.in|29 col 0| 1:C

tests/recursion_ag.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
let testname="recursion_ag"
3+
GrepProgram ag
4+
5+
source recursion.vim
6+

tests/recursion_findstr.ok

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
|1 col 1| GrepAdd -I c
2+
recursion\a\alphabet.in|3 col 1| c
3+
recursion\b\alphabet.in|3 col 1| c
4+
recursion\c\alphabet.in|3 col 1| c
5+
|1 col 1| GrepAdd -I C
6+
recursion\a\alphabet.in|29 col 1| C
7+
recursion\b\alphabet.in|29 col 1| C
8+
recursion\c\alphabet.in|29 col 1| C

tests/recursion_findstr.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
let testname="recursion_findstr"
3+
GrepProgram findstr
4+
5+
source recursion.vim
6+

tests/recursion_grep.ok

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
|1 col 1| GrepAdd -I c
2+
recursion\a\alphabet.in|3 col 0| c
3+
recursion\b\alphabet.in|3 col 0| c
4+
recursion\c\alphabet.in|3 col 0| c
5+
|1 col 1| GrepAdd -I C
6+
recursion\a\alphabet.in|29 col 0| C
7+
recursion\b\alphabet.in|29 col 0| C
8+
recursion\c\alphabet.in|29 col 0| C

tests/recursion_grep.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
let testname="recursion_grep"
3+
GrepProgram grep
4+
5+
source recursion.vim
6+

tests/recursion_pt.ok

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
|1 col 1| GrepAdd -I c
2+
recursion\c\alphabet.in|3 col 0| c
3+
recursion\a\alphabet.in|3 col 0| c
4+
recursion\b\alphabet.in|3 col 0| c
5+
|1 col 1| GrepAdd -I C
6+
recursion\b\alphabet.in|29 col 0| C
7+
recursion\c\alphabet.in|29 col 0| C
8+
recursion\a\alphabet.in|29 col 0| C

tests/recursion_pt.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
let testname="recursion_pt"
3+
GrepProgram pt
4+
5+
source recursion.vim
6+

tests/recursion_vimgrep.ok

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
|1 col 1| GrepAdd -I c
2+
recursion\a\alphabet.in|3 col 1| c
3+
recursion\b\alphabet.in|3 col 1| c
4+
recursion\c\alphabet.in|3 col 1| c
5+
|1 col 1| GrepAdd -I C
6+
recursion\a\alphabet.in|29 col 1| C
7+
recursion\b\alphabet.in|29 col 1| C
8+
recursion\c\alphabet.in|29 col 1| C

tests/recursion_vimgrep.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
let testname="recursion_vimgrep"
3+
GrepProgram vimgrep
4+
5+
source recursion.vim
6+

tests/vimgrep.suite

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ exclusions_grep.vim
2323
# exclusions_pt.vim # not yet supported
2424
exclusions_vimgrep.vim
2525

26+
# recursion
27+
recursion_ack.vim
28+
recursion_ag.vim
29+
recursion_findstr.vim
30+
recursion_grep.vim
31+
recursion_pt.vim
32+
recursion_vimgrep.vim
33+
2634
# simpleregex
2735
simpleregex_ack.vim
2836
simpleregex_ag.vim

0 commit comments

Comments
 (0)