Skip to content

Commit 0953878

Browse files
committed
Make a more complex simpleregex test
1 parent 8075114 commit 0953878

7 files changed

+465
-0
lines changed

tests/__simpleregex.in

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,43 @@ Y
5252
Z
5353
[a-c]
5454
[A-C]
55+
!
56+
"
57+
#
58+
$
59+
%
60+
&
61+
'
62+
(
63+
)
64+
*
65+
+
66+
,
67+
-
68+
.
69+
/
70+
:
71+
;
72+
<
73+
=
74+
>
75+
?
76+
@
77+
[
78+
\
79+
]
80+
^
81+
_
82+
`
83+
{
84+
|
85+
}
86+
~
87+
[]
88+
()
89+
{}
90+
\<
91+
\>
92+
\<\>
93+
''
94+
""

tests/simpleregex.vim

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,101 @@ GrepAdd -F [a-c]
1515
ResultListTag GrepAdd -F [A-C]
1616
GrepAdd -F [A-C]
1717

18+
ResultListTag GrepAdd -F !
19+
GrepAdd -F !
20+
21+
"ResultListTag GrepAdd -F "
22+
"GrepAdd -F "
23+
24+
ResultListTag GrepAdd -F #
25+
GrepAdd -F #
26+
27+
ResultListTag GrepAdd -F $
28+
GrepAdd -F $
29+
30+
"ResultListTag GrepAdd -F %
31+
"GrepAdd -F %
32+
33+
ResultListTag GrepAdd -F &
34+
GrepAdd -F &
35+
36+
"ResultListTag GrepAdd -F '
37+
"GrepAdd -F '
38+
39+
ResultListTag GrepAdd -F (
40+
GrepAdd -F (
41+
42+
ResultListTag GrepAdd -F )
43+
GrepAdd -F )
44+
45+
ResultListTag GrepAdd -F *
46+
GrepAdd -F *
47+
48+
ResultListTag GrepAdd -F +
49+
GrepAdd -F +
50+
51+
ResultListTag GrepAdd -F ,
52+
GrepAdd -F ,
53+
54+
"ResultListTag GrepAdd -F -
55+
"GrepAdd -F -
56+
57+
ResultListTag GrepAdd -F .
58+
GrepAdd -F .
59+
60+
ResultListTag GrepAdd -F /
61+
GrepAdd -F /
62+
63+
ResultListTag GrepAdd -F :
64+
GrepAdd -F :
65+
66+
ResultListTag GrepAdd -F ;
67+
GrepAdd -F ;
68+
69+
ResultListTag GrepAdd -F <
70+
GrepAdd -F <
71+
72+
ResultListTag GrepAdd -F =
73+
GrepAdd -F =
74+
75+
ResultListTag GrepAdd -F >
76+
GrepAdd -F >
77+
78+
ResultListTag GrepAdd -F ?
79+
GrepAdd -F ?
80+
81+
ResultListTag GrepAdd -F @
82+
GrepAdd -F @
83+
84+
ResultListTag GrepAdd -F [
85+
GrepAdd -F [
86+
87+
"ResultListTag GrepAdd -F \
88+
"GrepAdd -F \
89+
90+
ResultListTag GrepAdd -F ]
91+
GrepAdd -F ]
92+
93+
ResultListTag GrepAdd -F ^
94+
GrepAdd -F ^
95+
96+
ResultListTag GrepAdd -F _
97+
GrepAdd -F _
98+
99+
ResultListTag GrepAdd -F `
100+
GrepAdd -F `
101+
102+
ResultListTag GrepAdd -F {
103+
GrepAdd -F {
104+
105+
"ResultListTag GrepAdd -F |
106+
"GrepAdd -F |
107+
108+
ResultListTag GrepAdd -F }
109+
GrepAdd -F }
110+
111+
ResultListTag GrepAdd -F ~
112+
GrepAdd -F ~
18113

19114
cclose
20115
exe "ResultListSave ".testname.".out"

tests/simpleregex_ack.ok

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,69 @@ __simpleregex.in|54 col 0| 2:[A-C]
1212
__simpleregex.in|53 col 0| 1:[a-c]
1313
|1 col 1| GrepAdd -F [A-C]
1414
__simpleregex.in|54 col 0| 1:[A-C]
15+
|1 col 1| GrepAdd -F !
16+
__simpleregex.in|55 col 0| 1:!
17+
|1 col 1| GrepAdd -F #
18+
__simpleregex.in|57 col 0| 1:#
19+
|1 col 1| GrepAdd -F $
20+
__simpleregex.in|58 col 0| 1:$
21+
|1 col 1| GrepAdd -F &
22+
__simpleregex.in|60 col 0| 1:&
23+
|1 col 1| GrepAdd -F (
24+
__simpleregex.in|62 col 0| 1:(
25+
__simpleregex.in|88 col 0| 1:()
26+
|1 col 1| GrepAdd -F )
27+
__simpleregex.in|63 col 0| 1:)
28+
__simpleregex.in|88 col 0| 2:()
29+
|1 col 1| GrepAdd -F *
30+
__simpleregex.in|64 col 0| 1:*
31+
|1 col 1| GrepAdd -F +
32+
__simpleregex.in|65 col 0| 1:+
33+
|1 col 1| GrepAdd -F ,
34+
__simpleregex.in|66 col 0| 1:,
35+
|1 col 1| GrepAdd -F .
36+
__simpleregex.in|68 col 0| 1:.
37+
|1 col 1| GrepAdd -F /
38+
__simpleregex.in|69 col 0| 1:/
39+
|1 col 1| GrepAdd -F :
40+
__simpleregex.in|70 col 0| 1::
41+
|1 col 1| GrepAdd -F ;
42+
__simpleregex.in|71 col 0| 1:;
43+
|1 col 1| GrepAdd -F <
44+
__simpleregex.in|72 col 0| 1:<
45+
__simpleregex.in|90 col 0| 2:\<
46+
__simpleregex.in|92 col 0| 2:\<\>
47+
|1 col 1| GrepAdd -F =
48+
__simpleregex.in|73 col 0| 1:=
49+
|1 col 1| GrepAdd -F >
50+
__simpleregex.in|74 col 0| 1:>
51+
__simpleregex.in|91 col 0| 2:\>
52+
__simpleregex.in|92 col 0| 4:\<\>
53+
|1 col 1| GrepAdd -F ?
54+
__simpleregex.in|75 col 0| 1:?
55+
|1 col 1| GrepAdd -F @
56+
__simpleregex.in|76 col 0| 1:@
57+
|1 col 1| GrepAdd -F [
58+
__simpleregex.in|53 col 0| 1:[a-c]
59+
__simpleregex.in|54 col 0| 1:[A-C]
60+
__simpleregex.in|77 col 0| 1:[
61+
__simpleregex.in|87 col 0| 1:[]
62+
|1 col 1| GrepAdd -F ]
63+
__simpleregex.in|53 col 0| 5:[a-c]
64+
__simpleregex.in|54 col 0| 5:[A-C]
65+
__simpleregex.in|79 col 0| 1:]
66+
__simpleregex.in|87 col 0| 2:[]
67+
|1 col 1| GrepAdd -F ^
68+
__simpleregex.in|80 col 0| 1:^
69+
|1 col 1| GrepAdd -F _
70+
__simpleregex.in|81 col 0| 1:_
71+
|1 col 1| GrepAdd -F `
72+
__simpleregex.in|82 col 0| 1:`
73+
|1 col 1| GrepAdd -F {
74+
__simpleregex.in|83 col 0| 1:{
75+
__simpleregex.in|89 col 0| 1:{}
76+
|1 col 1| GrepAdd -F }
77+
__simpleregex.in|85 col 0| 1:}
78+
__simpleregex.in|89 col 0| 2:{}
79+
|1 col 1| GrepAdd -F ~
80+
__simpleregex.in|86 col 0| 1:~

tests/simpleregex_ag.ok

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,69 @@
1212
53|1 col 0| [a-c]
1313
|1 col 1| GrepAdd -F [A-C]
1414
54|1 col 0| [A-C]
15+
|1 col 1| GrepAdd -F !
16+
55|1 col 0| !
17+
|1 col 1| GrepAdd -F #
18+
57|1 col 0| #
19+
|1 col 1| GrepAdd -F $
20+
58|1 col 0| $
21+
|1 col 1| GrepAdd -F &
22+
60|1 col 0| &
23+
|1 col 1| GrepAdd -F (
24+
62|1 col 0| (
25+
88|1 col 0| ()
26+
|1 col 1| GrepAdd -F )
27+
63|1 col 0| )
28+
88|2 col 0| ()
29+
|1 col 1| GrepAdd -F *
30+
64|1 col 0| *
31+
|1 col 1| GrepAdd -F +
32+
65|1 col 0| +
33+
|1 col 1| GrepAdd -F ,
34+
66|1 col 0| ,
35+
|1 col 1| GrepAdd -F .
36+
68|1 col 0| .
37+
|1 col 1| GrepAdd -F /
38+
69|1 col 0| /
39+
|1 col 1| GrepAdd -F :
40+
70|1 col 0| :
41+
|1 col 1| GrepAdd -F ;
42+
71|1 col 0| ;
43+
|1 col 1| GrepAdd -F <
44+
72|1 col 0| <
45+
90|2 col 0| \<
46+
92|2 col 0| \<\>
47+
|1 col 1| GrepAdd -F =
48+
73|1 col 0| =
49+
|1 col 1| GrepAdd -F >
50+
74|1 col 0| >
51+
91|2 col 0| \>
52+
92|4 col 0| \<\>
53+
|1 col 1| GrepAdd -F ?
54+
75|1 col 0| ?
55+
|1 col 1| GrepAdd -F @
56+
76|1 col 0| @
57+
|1 col 1| GrepAdd -F [
58+
53|1 col 0| [a-c]
59+
54|1 col 0| [A-C]
60+
77|1 col 0| [
61+
87|1 col 0| []
62+
|1 col 1| GrepAdd -F ]
63+
53|5 col 0| [a-c]
64+
54|5 col 0| [A-C]
65+
79|1 col 0| ]
66+
87|2 col 0| []
67+
|1 col 1| GrepAdd -F ^
68+
80|1 col 0| ^
69+
|1 col 1| GrepAdd -F _
70+
81|1 col 0| _
71+
|1 col 1| GrepAdd -F `
72+
82|1 col 0| `
73+
|1 col 1| GrepAdd -F {
74+
83|1 col 0| {
75+
89|1 col 0| {}
76+
|1 col 1| GrepAdd -F }
77+
85|1 col 0| }
78+
89|2 col 0| {}
79+
|1 col 1| GrepAdd -F ~
80+
86|1 col 0| ~

tests/simpleregex_grep.ok

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,69 @@
1212
|0 col 0| 53:[a-c]
1313
|1 col 1| GrepAdd -F [A-C]
1414
|0 col 0| 54:[A-C]
15+
|1 col 1| GrepAdd -F !
16+
|0 col 0| 55:!
17+
|1 col 1| GrepAdd -F #
18+
|0 col 0| 57:#
19+
|1 col 1| GrepAdd -F $
20+
|0 col 0| 58:$
21+
|1 col 1| GrepAdd -F &
22+
|0 col 0| 60:&
23+
|1 col 1| GrepAdd -F (
24+
|0 col 0| 62:(
25+
|0 col 0| 88:()
26+
|1 col 1| GrepAdd -F )
27+
|0 col 0| 63:)
28+
|0 col 0| 88:()
29+
|1 col 1| GrepAdd -F *
30+
|0 col 0| 64:*
31+
|1 col 1| GrepAdd -F +
32+
|0 col 0| 65:+
33+
|1 col 1| GrepAdd -F ,
34+
|0 col 0| 66:,
35+
|1 col 1| GrepAdd -F .
36+
|0 col 0| 68:.
37+
|1 col 1| GrepAdd -F /
38+
|0 col 0| 69:/
39+
|1 col 1| GrepAdd -F :
40+
|0 col 0| 70::
41+
|1 col 1| GrepAdd -F ;
42+
|0 col 0| 71:;
43+
|1 col 1| GrepAdd -F <
44+
|0 col 0| 72:<
45+
|0 col 0| 90:\<
46+
|0 col 0| 92:\<\>
47+
|1 col 1| GrepAdd -F =
48+
|0 col 0| 73:=
49+
|1 col 1| GrepAdd -F >
50+
|0 col 0| 74:>
51+
|0 col 0| 91:\>
52+
|0 col 0| 92:\<\>
53+
|1 col 1| GrepAdd -F ?
54+
|0 col 0| 75:?
55+
|1 col 1| GrepAdd -F @
56+
|0 col 0| 76:@
57+
|1 col 1| GrepAdd -F [
58+
|0 col 0| 53:[a-c]
59+
|0 col 0| 54:[A-C]
60+
|0 col 0| 77:[
61+
|0 col 0| 87:[]
62+
|1 col 1| GrepAdd -F ]
63+
|0 col 0| 53:[a-c]
64+
|0 col 0| 54:[A-C]
65+
|0 col 0| 79:]
66+
|0 col 0| 87:[]
67+
|1 col 1| GrepAdd -F ^
68+
|0 col 0| 80:^
69+
|1 col 1| GrepAdd -F _
70+
|0 col 0| 81:_
71+
|1 col 1| GrepAdd -F `
72+
|0 col 0| 82:`
73+
|1 col 1| GrepAdd -F {
74+
|0 col 0| 83:{
75+
|0 col 0| 89:{}
76+
|1 col 1| GrepAdd -F }
77+
|0 col 0| 85:}
78+
|0 col 0| 89:{}
79+
|1 col 1| GrepAdd -F ~
80+
|0 col 0| 86:~

0 commit comments

Comments
 (0)