csvutils 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Manifest.txt +9 -0
- data/lib/csvutils.rb +4 -2
- data/lib/csvutils/cut.rb +47 -0
- data/lib/csvutils/split.rb +107 -0
- data/lib/csvutils/test.rb +22 -0
- data/lib/csvutils/utils.rb +29 -0
- data/lib/csvutils/version.rb +2 -2
- data/test/data/at-austria/AUT.csv +363 -0
- data/test/data/de-deutschland/bundesliga.csv +481 -0
- data/test/data/eng-england/2017-18/E0.csv +381 -0
- data/test/helper.rb +7 -1
- data/test/test_headers.rb +41 -0
- data/test/test_misc.rb +33 -0
- metadata +11 -2
@@ -0,0 +1,381 @@
|
|
1
|
+
Date,HomeTeam,AwayTeam,FTHG,FTAG,HTHG,HTAG
|
2
|
+
11/08/17,Arsenal,Leicester,4,3,2,2
|
3
|
+
12/08/17,Brighton,Man City,0,2,0,0
|
4
|
+
12/08/17,Chelsea,Burnley,2,3,0,3
|
5
|
+
12/08/17,Crystal Palace,Huddersfield,0,3,0,2
|
6
|
+
12/08/17,Everton,Stoke,1,0,1,0
|
7
|
+
12/08/17,Southampton,Swansea,0,0,0,0
|
8
|
+
12/08/17,Watford,Liverpool,3,3,2,1
|
9
|
+
12/08/17,West Brom,Bournemouth,1,0,1,0
|
10
|
+
13/08/17,Man United,West Ham,4,0,1,0
|
11
|
+
13/08/17,Newcastle,Tottenham,0,2,0,0
|
12
|
+
19/08/17,Bournemouth,Watford,0,2,0,0
|
13
|
+
19/08/17,Burnley,West Brom,0,1,0,0
|
14
|
+
19/08/17,Leicester,Brighton,2,0,1,0
|
15
|
+
19/08/17,Liverpool,Crystal Palace,1,0,0,0
|
16
|
+
19/08/17,Southampton,West Ham,3,2,2,1
|
17
|
+
19/08/17,Stoke,Arsenal,1,0,0,0
|
18
|
+
19/08/17,Swansea,Man United,0,4,0,1
|
19
|
+
20/08/17,Huddersfield,Newcastle,1,0,0,0
|
20
|
+
20/08/17,Tottenham,Chelsea,1,2,0,1
|
21
|
+
21/08/17,Man City,Everton,1,1,0,1
|
22
|
+
26/08/17,Bournemouth,Man City,1,2,1,1
|
23
|
+
26/08/17,Crystal Palace,Swansea,0,2,0,1
|
24
|
+
26/08/17,Huddersfield,Southampton,0,0,0,0
|
25
|
+
26/08/17,Man United,Leicester,2,0,0,0
|
26
|
+
26/08/17,Newcastle,West Ham,3,0,1,0
|
27
|
+
26/08/17,Watford,Brighton,0,0,0,0
|
28
|
+
27/08/17,Chelsea,Everton,2,0,2,0
|
29
|
+
27/08/17,Liverpool,Arsenal,4,0,2,0
|
30
|
+
27/08/17,Tottenham,Burnley,1,1,0,0
|
31
|
+
27/08/17,West Brom,Stoke,1,1,0,0
|
32
|
+
09/09/17,Arsenal,Bournemouth,3,0,2,0
|
33
|
+
09/09/17,Brighton,West Brom,3,1,1,0
|
34
|
+
09/09/17,Everton,Tottenham,0,3,0,2
|
35
|
+
09/09/17,Leicester,Chelsea,1,2,0,1
|
36
|
+
09/09/17,Man City,Liverpool,5,0,2,0
|
37
|
+
09/09/17,Southampton,Watford,0,2,0,1
|
38
|
+
09/09/17,Stoke,Man United,2,2,1,1
|
39
|
+
10/09/17,Burnley,Crystal Palace,1,0,1,0
|
40
|
+
10/09/17,Swansea,Newcastle,0,1,0,0
|
41
|
+
11/09/17,West Ham,Huddersfield,2,0,0,0
|
42
|
+
15/09/17,Bournemouth,Brighton,2,1,0,0
|
43
|
+
16/09/17,Crystal Palace,Southampton,0,1,0,1
|
44
|
+
16/09/17,Huddersfield,Leicester,1,1,0,0
|
45
|
+
16/09/17,Liverpool,Burnley,1,1,1,1
|
46
|
+
16/09/17,Newcastle,Stoke,2,1,1,0
|
47
|
+
16/09/17,Tottenham,Swansea,0,0,0,0
|
48
|
+
16/09/17,Watford,Man City,0,6,0,3
|
49
|
+
16/09/17,West Brom,West Ham,0,0,0,0
|
50
|
+
17/09/17,Chelsea,Arsenal,0,0,0,0
|
51
|
+
17/09/17,Man United,Everton,4,0,1,0
|
52
|
+
23/09/17,Burnley,Huddersfield,0,0,0,0
|
53
|
+
23/09/17,Everton,Bournemouth,2,1,0,0
|
54
|
+
23/09/17,Leicester,Liverpool,2,3,1,2
|
55
|
+
23/09/17,Man City,Crystal Palace,5,0,1,0
|
56
|
+
23/09/17,Southampton,Man United,0,1,0,1
|
57
|
+
23/09/17,Stoke,Chelsea,0,4,0,2
|
58
|
+
23/09/17,Swansea,Watford,1,2,0,1
|
59
|
+
23/09/17,West Ham,Tottenham,2,3,0,2
|
60
|
+
24/09/17,Brighton,Newcastle,1,0,0,0
|
61
|
+
25/09/17,Arsenal,West Brom,2,0,1,0
|
62
|
+
30/09/17,Bournemouth,Leicester,0,0,0,0
|
63
|
+
30/09/17,Chelsea,Man City,0,1,0,0
|
64
|
+
30/09/17,Huddersfield,Tottenham,0,4,0,3
|
65
|
+
30/09/17,Man United,Crystal Palace,4,0,2,0
|
66
|
+
30/09/17,Stoke,Southampton,2,1,1,0
|
67
|
+
30/09/17,West Brom,Watford,2,2,2,1
|
68
|
+
30/09/17,West Ham,Swansea,1,0,0,0
|
69
|
+
01/10/17,Arsenal,Brighton,2,0,1,0
|
70
|
+
01/10/17,Everton,Burnley,0,1,0,1
|
71
|
+
01/10/17,Newcastle,Liverpool,1,1,1,1
|
72
|
+
14/10/17,Burnley,West Ham,1,1,0,1
|
73
|
+
14/10/17,Crystal Palace,Chelsea,2,1,2,1
|
74
|
+
14/10/17,Liverpool,Man United,0,0,0,0
|
75
|
+
14/10/17,Man City,Stoke,7,2,3,1
|
76
|
+
14/10/17,Swansea,Huddersfield,2,0,1,0
|
77
|
+
14/10/17,Tottenham,Bournemouth,1,0,0,0
|
78
|
+
14/10/17,Watford,Arsenal,2,1,0,1
|
79
|
+
15/10/17,Brighton,Everton,1,1,0,0
|
80
|
+
15/10/17,Southampton,Newcastle,2,2,0,1
|
81
|
+
16/10/17,Leicester,West Brom,1,1,0,0
|
82
|
+
20/10/17,West Ham,Brighton,0,3,0,2
|
83
|
+
21/10/17,Chelsea,Watford,4,2,1,1
|
84
|
+
21/10/17,Huddersfield,Man United,2,1,2,0
|
85
|
+
21/10/17,Man City,Burnley,3,0,1,0
|
86
|
+
21/10/17,Newcastle,Crystal Palace,1,0,0,0
|
87
|
+
21/10/17,Southampton,West Brom,1,0,0,0
|
88
|
+
21/10/17,Stoke,Bournemouth,1,2,0,2
|
89
|
+
21/10/17,Swansea,Leicester,1,2,0,1
|
90
|
+
22/10/17,Everton,Arsenal,2,5,1,1
|
91
|
+
22/10/17,Tottenham,Liverpool,4,1,3,1
|
92
|
+
28/10/17,Arsenal,Swansea,2,1,0,1
|
93
|
+
28/10/17,Bournemouth,Chelsea,0,1,0,0
|
94
|
+
28/10/17,Crystal Palace,West Ham,2,2,0,2
|
95
|
+
28/10/17,Liverpool,Huddersfield,3,0,0,0
|
96
|
+
28/10/17,Man United,Tottenham,1,0,0,0
|
97
|
+
28/10/17,Watford,Stoke,0,1,0,1
|
98
|
+
28/10/17,West Brom,Man City,2,3,1,2
|
99
|
+
29/10/17,Brighton,Southampton,1,1,0,1
|
100
|
+
29/10/17,Leicester,Everton,2,0,2,0
|
101
|
+
30/10/17,Burnley,Newcastle,1,0,0,0
|
102
|
+
04/11/17,Huddersfield,West Brom,1,0,1,0
|
103
|
+
04/11/17,Newcastle,Bournemouth,0,1,0,0
|
104
|
+
04/11/17,Southampton,Burnley,0,1,0,0
|
105
|
+
04/11/17,Stoke,Leicester,2,2,1,1
|
106
|
+
04/11/17,Swansea,Brighton,0,1,0,1
|
107
|
+
04/11/17,West Ham,Liverpool,1,4,0,2
|
108
|
+
05/11/17,Chelsea,Man United,1,0,0,0
|
109
|
+
05/11/17,Everton,Watford,3,2,0,0
|
110
|
+
05/11/17,Man City,Arsenal,3,1,1,0
|
111
|
+
05/11/17,Tottenham,Crystal Palace,1,0,0,0
|
112
|
+
18/11/17,Arsenal,Tottenham,2,0,2,0
|
113
|
+
18/11/17,Bournemouth,Huddersfield,4,0,2,0
|
114
|
+
18/11/17,Burnley,Swansea,2,0,2,0
|
115
|
+
18/11/17,Crystal Palace,Everton,2,2,2,2
|
116
|
+
18/11/17,Leicester,Man City,0,2,0,1
|
117
|
+
18/11/17,Liverpool,Southampton,3,0,2,0
|
118
|
+
18/11/17,Man United,Newcastle,4,1,2,1
|
119
|
+
18/11/17,West Brom,Chelsea,0,4,0,3
|
120
|
+
19/11/17,Watford,West Ham,2,0,1,0
|
121
|
+
20/11/17,Brighton,Stoke,2,2,1,2
|
122
|
+
24/11/17,West Ham,Leicester,1,1,1,1
|
123
|
+
25/11/17,Crystal Palace,Stoke,2,1,0,0
|
124
|
+
25/11/17,Liverpool,Chelsea,1,1,0,0
|
125
|
+
25/11/17,Man United,Brighton,1,0,0,0
|
126
|
+
25/11/17,Newcastle,Watford,0,3,0,2
|
127
|
+
25/11/17,Swansea,Bournemouth,0,0,0,0
|
128
|
+
25/11/17,Tottenham,West Brom,1,1,0,1
|
129
|
+
26/11/17,Burnley,Arsenal,0,1,0,0
|
130
|
+
26/11/17,Huddersfield,Man City,1,2,1,0
|
131
|
+
26/11/17,Southampton,Everton,4,1,1,1
|
132
|
+
28/11/17,Brighton,Crystal Palace,0,0,0,0
|
133
|
+
28/11/17,Leicester,Tottenham,2,1,2,0
|
134
|
+
28/11/17,Watford,Man United,2,4,0,3
|
135
|
+
28/11/17,West Brom,Newcastle,2,2,1,0
|
136
|
+
29/11/17,Arsenal,Huddersfield,5,0,1,0
|
137
|
+
29/11/17,Bournemouth,Burnley,1,2,0,1
|
138
|
+
29/11/17,Chelsea,Swansea,1,0,0,0
|
139
|
+
29/11/17,Everton,West Ham,4,0,2,0
|
140
|
+
29/11/17,Man City,Southampton,2,1,0,0
|
141
|
+
29/11/17,Stoke,Liverpool,0,3,0,1
|
142
|
+
02/12/17,Arsenal,Man United,1,3,0,2
|
143
|
+
02/12/17,Brighton,Liverpool,1,5,0,2
|
144
|
+
02/12/17,Chelsea,Newcastle,3,1,2,1
|
145
|
+
02/12/17,Everton,Huddersfield,2,0,0,0
|
146
|
+
02/12/17,Leicester,Burnley,1,0,1,0
|
147
|
+
02/12/17,Stoke,Swansea,2,1,2,1
|
148
|
+
02/12/17,Watford,Tottenham,1,1,1,1
|
149
|
+
02/12/17,West Brom,Crystal Palace,0,0,0,0
|
150
|
+
03/12/17,Bournemouth,Southampton,1,1,1,0
|
151
|
+
03/12/17,Man City,West Ham,2,1,0,1
|
152
|
+
09/12/17,Burnley,Watford,1,0,1,0
|
153
|
+
09/12/17,Crystal Palace,Bournemouth,2,2,2,2
|
154
|
+
09/12/17,Huddersfield,Brighton,2,0,2,0
|
155
|
+
09/12/17,Newcastle,Leicester,2,3,1,1
|
156
|
+
09/12/17,Swansea,West Brom,1,0,0,0
|
157
|
+
09/12/17,Tottenham,Stoke,5,1,1,0
|
158
|
+
09/12/17,West Ham,Chelsea,1,0,1,0
|
159
|
+
10/12/17,Liverpool,Everton,1,1,1,0
|
160
|
+
10/12/17,Man United,Man City,1,2,1,1
|
161
|
+
10/12/17,Southampton,Arsenal,1,1,1,0
|
162
|
+
12/12/17,Burnley,Stoke,1,0,0,0
|
163
|
+
12/12/17,Crystal Palace,Watford,2,1,0,1
|
164
|
+
12/12/17,Huddersfield,Chelsea,1,3,0,2
|
165
|
+
13/12/17,Liverpool,West Brom,0,0,0,0
|
166
|
+
13/12/17,Man United,Bournemouth,1,0,1,0
|
167
|
+
13/12/17,Newcastle,Everton,0,1,0,1
|
168
|
+
13/12/17,Southampton,Leicester,1,4,0,3
|
169
|
+
13/12/17,Swansea,Man City,0,4,0,2
|
170
|
+
13/12/17,Tottenham,Brighton,2,0,1,0
|
171
|
+
13/12/17,West Ham,Arsenal,0,0,0,0
|
172
|
+
16/12/17,Arsenal,Newcastle,1,0,1,0
|
173
|
+
16/12/17,Brighton,Burnley,0,0,0,0
|
174
|
+
16/12/17,Chelsea,Southampton,1,0,1,0
|
175
|
+
16/12/17,Leicester,Crystal Palace,0,3,0,2
|
176
|
+
16/12/17,Man City,Tottenham,4,1,1,0
|
177
|
+
16/12/17,Stoke,West Ham,0,3,0,1
|
178
|
+
16/12/17,Watford,Huddersfield,1,4,0,2
|
179
|
+
17/12/17,Bournemouth,Liverpool,0,4,0,3
|
180
|
+
17/12/17,West Brom,Man United,1,2,0,2
|
181
|
+
18/12/17,Everton,Swansea,3,1,1,1
|
182
|
+
22/12/17,Arsenal,Liverpool,3,3,0,1
|
183
|
+
23/12/17,Brighton,Watford,1,0,0,0
|
184
|
+
23/12/17,Burnley,Tottenham,0,3,0,1
|
185
|
+
23/12/17,Everton,Chelsea,0,0,0,0
|
186
|
+
23/12/17,Leicester,Man United,2,2,1,1
|
187
|
+
23/12/17,Man City,Bournemouth,4,0,1,0
|
188
|
+
23/12/17,Southampton,Huddersfield,1,1,1,0
|
189
|
+
23/12/17,Stoke,West Brom,3,1,2,0
|
190
|
+
23/12/17,Swansea,Crystal Palace,1,1,0,0
|
191
|
+
23/12/17,West Ham,Newcastle,2,3,1,1
|
192
|
+
26/12/17,Bournemouth,West Ham,3,3,1,1
|
193
|
+
26/12/17,Chelsea,Brighton,2,0,0,0
|
194
|
+
26/12/17,Huddersfield,Stoke,1,1,1,0
|
195
|
+
26/12/17,Liverpool,Swansea,5,0,1,0
|
196
|
+
26/12/17,Man United,Burnley,2,2,0,2
|
197
|
+
26/12/17,Tottenham,Southampton,5,2,2,0
|
198
|
+
26/12/17,Watford,Leicester,2,1,1,1
|
199
|
+
26/12/17,West Brom,Everton,0,0,0,0
|
200
|
+
27/12/17,Newcastle,Man City,0,1,0,1
|
201
|
+
28/12/17,Crystal Palace,Arsenal,2,3,0,1
|
202
|
+
30/12/17,Bournemouth,Everton,2,1,1,0
|
203
|
+
30/12/17,Chelsea,Stoke,5,0,3,0
|
204
|
+
30/12/17,Huddersfield,Burnley,0,0,0,0
|
205
|
+
30/12/17,Liverpool,Leicester,2,1,0,1
|
206
|
+
30/12/17,Man United,Southampton,0,0,0,0
|
207
|
+
30/12/17,Newcastle,Brighton,0,0,0,0
|
208
|
+
30/12/17,Watford,Swansea,1,2,1,0
|
209
|
+
31/12/17,Crystal Palace,Man City,0,0,0,0
|
210
|
+
31/12/17,West Brom,Arsenal,1,1,0,0
|
211
|
+
01/01/18,Brighton,Bournemouth,2,2,1,1
|
212
|
+
01/01/18,Burnley,Liverpool,1,2,0,0
|
213
|
+
01/01/18,Everton,Man United,0,2,0,0
|
214
|
+
01/01/18,Leicester,Huddersfield,3,0,0,0
|
215
|
+
01/01/18,Stoke,Newcastle,0,1,0,0
|
216
|
+
02/01/18,Man City,Watford,3,1,2,0
|
217
|
+
02/01/18,Southampton,Crystal Palace,1,2,1,0
|
218
|
+
02/01/18,Swansea,Tottenham,0,2,0,1
|
219
|
+
02/01/18,West Ham,West Brom,2,1,0,1
|
220
|
+
03/01/18,Arsenal,Chelsea,2,2,0,0
|
221
|
+
04/01/18,Tottenham,West Ham,1,1,0,0
|
222
|
+
13/01/18,Chelsea,Leicester,0,0,0,0
|
223
|
+
13/01/18,Crystal Palace,Burnley,1,0,1,0
|
224
|
+
13/01/18,Huddersfield,West Ham,1,4,1,1
|
225
|
+
13/01/18,Newcastle,Swansea,1,1,0,0
|
226
|
+
13/01/18,Tottenham,Everton,4,0,1,0
|
227
|
+
13/01/18,Watford,Southampton,2,2,0,2
|
228
|
+
13/01/18,West Brom,Brighton,2,0,1,0
|
229
|
+
14/01/18,Bournemouth,Arsenal,2,1,0,0
|
230
|
+
14/01/18,Liverpool,Man City,4,3,1,1
|
231
|
+
15/01/18,Man United,Stoke,3,0,2,0
|
232
|
+
20/01/18,Arsenal,Crystal Palace,4,1,4,0
|
233
|
+
20/01/18,Brighton,Chelsea,0,4,0,2
|
234
|
+
20/01/18,Burnley,Man United,0,1,0,0
|
235
|
+
20/01/18,Everton,West Brom,1,1,0,1
|
236
|
+
20/01/18,Leicester,Watford,2,0,1,0
|
237
|
+
20/01/18,Man City,Newcastle,3,1,1,0
|
238
|
+
20/01/18,Stoke,Huddersfield,2,0,0,0
|
239
|
+
20/01/18,West Ham,Bournemouth,1,1,0,0
|
240
|
+
21/01/18,Southampton,Tottenham,1,1,1,1
|
241
|
+
22/01/18,Swansea,Liverpool,1,0,1,0
|
242
|
+
30/01/18,Huddersfield,Liverpool,0,3,0,2
|
243
|
+
30/01/18,Swansea,Arsenal,3,1,1,1
|
244
|
+
30/01/18,West Ham,Crystal Palace,1,1,1,1
|
245
|
+
31/01/18,Chelsea,Bournemouth,0,3,0,0
|
246
|
+
31/01/18,Everton,Leicester,2,1,2,0
|
247
|
+
31/01/18,Man City,West Brom,3,0,1,0
|
248
|
+
31/01/18,Newcastle,Burnley,1,1,0,0
|
249
|
+
31/01/18,Southampton,Brighton,1,1,0,1
|
250
|
+
31/01/18,Stoke,Watford,0,0,0,0
|
251
|
+
31/01/18,Tottenham,Man United,2,0,2,0
|
252
|
+
03/02/18,Arsenal,Everton,5,1,4,0
|
253
|
+
03/02/18,Bournemouth,Stoke,2,1,0,1
|
254
|
+
03/02/18,Brighton,West Ham,3,1,1,1
|
255
|
+
03/02/18,Burnley,Man City,1,1,0,1
|
256
|
+
03/02/18,Leicester,Swansea,1,1,1,0
|
257
|
+
03/02/18,Man United,Huddersfield,2,0,0,0
|
258
|
+
03/02/18,West Brom,Southampton,2,3,1,2
|
259
|
+
04/02/18,Crystal Palace,Newcastle,1,1,0,1
|
260
|
+
04/02/18,Liverpool,Tottenham,2,2,1,0
|
261
|
+
05/02/18,Watford,Chelsea,4,1,1,0
|
262
|
+
10/02/18,Everton,Crystal Palace,3,1,0,0
|
263
|
+
10/02/18,Man City,Leicester,5,1,1,1
|
264
|
+
10/02/18,Stoke,Brighton,1,1,0,1
|
265
|
+
10/02/18,Swansea,Burnley,1,0,0,0
|
266
|
+
10/02/18,Tottenham,Arsenal,1,0,0,0
|
267
|
+
10/02/18,West Ham,Watford,2,0,1,0
|
268
|
+
11/02/18,Huddersfield,Bournemouth,4,1,2,1
|
269
|
+
11/02/18,Newcastle,Man United,1,0,0,0
|
270
|
+
11/02/18,Southampton,Liverpool,0,2,0,2
|
271
|
+
12/02/18,Chelsea,West Brom,3,0,1,0
|
272
|
+
24/02/18,Bournemouth,Newcastle,2,2,0,2
|
273
|
+
24/02/18,Brighton,Swansea,4,1,1,0
|
274
|
+
24/02/18,Burnley,Southampton,1,1,0,0
|
275
|
+
24/02/18,Leicester,Stoke,1,1,0,1
|
276
|
+
24/02/18,Liverpool,West Ham,4,1,1,0
|
277
|
+
24/02/18,Watford,Everton,1,0,0,0
|
278
|
+
24/02/18,West Brom,Huddersfield,1,2,0,0
|
279
|
+
25/02/18,Crystal Palace,Tottenham,0,1,0,0
|
280
|
+
25/02/18,Man United,Chelsea,2,1,1,1
|
281
|
+
01/03/18,Arsenal,Man City,0,3,0,3
|
282
|
+
03/03/18,Burnley,Everton,2,1,0,1
|
283
|
+
03/03/18,Leicester,Bournemouth,1,1,0,1
|
284
|
+
03/03/18,Liverpool,Newcastle,2,0,1,0
|
285
|
+
03/03/18,Southampton,Stoke,0,0,0,0
|
286
|
+
03/03/18,Swansea,West Ham,4,1,2,0
|
287
|
+
03/03/18,Tottenham,Huddersfield,2,0,1,0
|
288
|
+
03/03/18,Watford,West Brom,1,0,0,0
|
289
|
+
04/03/18,Brighton,Arsenal,2,1,2,1
|
290
|
+
04/03/18,Man City,Chelsea,1,0,0,0
|
291
|
+
05/03/18,Crystal Palace,Man United,2,3,1,0
|
292
|
+
10/03/18,Chelsea,Crystal Palace,2,1,2,0
|
293
|
+
10/03/18,Everton,Brighton,2,0,0,0
|
294
|
+
10/03/18,Huddersfield,Swansea,0,0,0,0
|
295
|
+
10/03/18,Man United,Liverpool,2,1,2,0
|
296
|
+
10/03/18,Newcastle,Southampton,3,0,2,0
|
297
|
+
10/03/18,West Brom,Leicester,1,4,1,1
|
298
|
+
10/03/18,West Ham,Burnley,0,3,0,0
|
299
|
+
11/03/18,Arsenal,Watford,3,0,1,0
|
300
|
+
11/03/18,Bournemouth,Tottenham,1,4,1,1
|
301
|
+
12/03/18,Stoke,Man City,0,2,0,1
|
302
|
+
17/03/18,Bournemouth,West Brom,2,1,0,0
|
303
|
+
17/03/18,Huddersfield,Crystal Palace,0,2,0,1
|
304
|
+
17/03/18,Liverpool,Watford,5,0,2,0
|
305
|
+
17/03/18,Stoke,Everton,1,2,0,0
|
306
|
+
31/03/18,Brighton,Leicester,0,2,0,0
|
307
|
+
31/03/18,Crystal Palace,Liverpool,1,2,1,0
|
308
|
+
31/03/18,Everton,Man City,1,3,0,3
|
309
|
+
31/03/18,Man United,Swansea,2,0,2,0
|
310
|
+
31/03/18,Newcastle,Huddersfield,1,0,0,0
|
311
|
+
31/03/18,Watford,Bournemouth,2,2,1,1
|
312
|
+
31/03/18,West Brom,Burnley,1,2,0,1
|
313
|
+
31/03/18,West Ham,Southampton,3,0,3,0
|
314
|
+
01/04/18,Arsenal,Stoke,3,0,0,0
|
315
|
+
01/04/18,Chelsea,Tottenham,1,3,1,1
|
316
|
+
07/04/18,Bournemouth,Crystal Palace,2,2,0,0
|
317
|
+
07/04/18,Brighton,Huddersfield,1,1,1,1
|
318
|
+
07/04/18,Everton,Liverpool,0,0,0,0
|
319
|
+
07/04/18,Leicester,Newcastle,1,2,0,1
|
320
|
+
07/04/18,Man City,Man United,2,3,2,0
|
321
|
+
07/04/18,Stoke,Tottenham,1,2,0,0
|
322
|
+
07/04/18,Watford,Burnley,1,2,0,0
|
323
|
+
07/04/18,West Brom,Swansea,1,1,0,0
|
324
|
+
08/04/18,Arsenal,Southampton,3,2,2,1
|
325
|
+
08/04/18,Chelsea,West Ham,1,1,1,0
|
326
|
+
14/04/18,Burnley,Leicester,2,1,2,0
|
327
|
+
14/04/18,Crystal Palace,Brighton,3,2,3,2
|
328
|
+
14/04/18,Huddersfield,Watford,1,0,0,0
|
329
|
+
14/04/18,Liverpool,Bournemouth,3,0,1,0
|
330
|
+
14/04/18,Southampton,Chelsea,2,3,1,0
|
331
|
+
14/04/18,Swansea,Everton,1,1,0,1
|
332
|
+
14/04/18,Tottenham,Man City,1,3,1,2
|
333
|
+
15/04/18,Man United,West Brom,0,1,0,0
|
334
|
+
15/04/18,Newcastle,Arsenal,2,1,1,1
|
335
|
+
16/04/18,West Ham,Stoke,1,1,0,0
|
336
|
+
17/04/18,Brighton,Tottenham,1,1,0,0
|
337
|
+
18/04/18,Bournemouth,Man United,0,2,0,1
|
338
|
+
19/04/18,Burnley,Chelsea,1,2,0,1
|
339
|
+
19/04/18,Leicester,Southampton,0,0,0,0
|
340
|
+
21/04/18,Watford,Crystal Palace,0,0,0,0
|
341
|
+
21/04/18,West Brom,Liverpool,2,2,0,1
|
342
|
+
22/04/18,Arsenal,West Ham,4,1,0,0
|
343
|
+
22/04/18,Man City,Swansea,5,0,2,0
|
344
|
+
22/04/18,Stoke,Burnley,1,1,1,0
|
345
|
+
23/04/18,Everton,Newcastle,1,0,0,0
|
346
|
+
28/04/18,Burnley,Brighton,0,0,0,0
|
347
|
+
28/04/18,Crystal Palace,Leicester,5,0,2,0
|
348
|
+
28/04/18,Huddersfield,Everton,0,2,0,1
|
349
|
+
28/04/18,Liverpool,Stoke,0,0,0,0
|
350
|
+
28/04/18,Newcastle,West Brom,0,1,0,1
|
351
|
+
28/04/18,Southampton,Bournemouth,2,1,1,1
|
352
|
+
28/04/18,Swansea,Chelsea,0,1,0,1
|
353
|
+
29/04/18,Man United,Arsenal,2,1,1,0
|
354
|
+
29/04/18,West Ham,Man City,1,4,1,2
|
355
|
+
30/04/18,Tottenham,Watford,2,0,1,0
|
356
|
+
04/05/18,Brighton,Man United,1,0,0,0
|
357
|
+
05/05/18,Bournemouth,Swansea,1,0,1,0
|
358
|
+
05/05/18,Everton,Southampton,1,1,0,0
|
359
|
+
05/05/18,Leicester,West Ham,0,2,0,1
|
360
|
+
05/05/18,Stoke,Crystal Palace,1,2,1,0
|
361
|
+
05/05/18,Watford,Newcastle,2,1,2,0
|
362
|
+
05/05/18,West Brom,Tottenham,1,0,0,0
|
363
|
+
06/05/18,Arsenal,Burnley,5,0,2,0
|
364
|
+
06/05/18,Chelsea,Liverpool,1,0,1,0
|
365
|
+
06/05/18,Man City,Huddersfield,0,0,0,0
|
366
|
+
08/05/18,Swansea,Southampton,0,1,0,0
|
367
|
+
09/05/18,Chelsea,Huddersfield,1,1,0,0
|
368
|
+
09/05/18,Leicester,Arsenal,3,1,1,0
|
369
|
+
09/05/18,Man City,Brighton,3,1,2,1
|
370
|
+
09/05/18,Tottenham,Newcastle,1,0,0,0
|
371
|
+
10/05/18,West Ham,Man United,0,0,0,0
|
372
|
+
13/05/18,Burnley,Bournemouth,1,2,1,0
|
373
|
+
13/05/18,Crystal Palace,West Brom,2,0,0,0
|
374
|
+
13/05/18,Huddersfield,Arsenal,0,1,0,1
|
375
|
+
13/05/18,Liverpool,Brighton,4,0,2,0
|
376
|
+
13/05/18,Man United,Watford,1,0,1,0
|
377
|
+
13/05/18,Newcastle,Chelsea,3,0,1,0
|
378
|
+
13/05/18,Southampton,Man City,0,1,0,0
|
379
|
+
13/05/18,Swansea,Stoke,1,2,1,2
|
380
|
+
13/05/18,Tottenham,Leicester,5,4,1,2
|
381
|
+
13/05/18,West Ham,Everton,3,1,1,0
|
data/test/helper.rb
CHANGED
@@ -0,0 +1,41 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
###
|
4
|
+
# to run use
|
5
|
+
# ruby -I ./lib -I ./test test/test_headers.rb
|
6
|
+
|
7
|
+
|
8
|
+
require 'helper'
|
9
|
+
|
10
|
+
class TestHeaders < MiniTest::Test
|
11
|
+
|
12
|
+
|
13
|
+
##
|
14
|
+
# Div,Date,HomeTeam,AwayTeam,FTHG,FTAG,FTR,HTHG,HTAG,HTR,
|
15
|
+
# Referee,HS,AS,HST,AST,HF,AF,HC,AC,HY,AY,HR,AR,
|
16
|
+
# B365H,B365D,B365A,BWH,BWD,BWA,IWH,IWD,IWA,LBH,LBD,LBA,PSH,PSD,PSA,
|
17
|
+
# WHH,WHD,WHA,VCH,VCD,VCA,
|
18
|
+
# Bb1X2,BbMxH,BbAvH,BbMxD,BbAvD,BbMxA,BbAvA,BbOU,BbMx>2.5,BbAv>2.5,BbMx<2.5,BbAv<2.5,
|
19
|
+
# BbAH,BbAHh,BbMxAHH,BbAvAHH,BbMxAHA,BbAvAHA,PSCH,PSCD,PSCA
|
20
|
+
def test_eng
|
21
|
+
path = "#{CsvUtils.test_data_dir}/eng-england/2017-18/E0.csv"
|
22
|
+
|
23
|
+
headers = CsvUtils.header( path )
|
24
|
+
pp headers
|
25
|
+
|
26
|
+
assert_equal ['Date','HomeTeam','AwayTeam','FTHG','FTAG','HTHG','HTAG'], headers
|
27
|
+
end
|
28
|
+
|
29
|
+
###
|
30
|
+
# Country,League,Season,Date,Time,Home,Away,HG,AG,
|
31
|
+
# Res,PH,PD,PA,MaxH,MaxD,MaxA,AvgH,AvgD,AvgA
|
32
|
+
def test_at
|
33
|
+
path = "#{CsvUtils.test_data_dir}/at-austria/AUT.csv"
|
34
|
+
|
35
|
+
headers = CsvUtils.header( path )
|
36
|
+
pp headers
|
37
|
+
|
38
|
+
assert_equal ['Season','Date','Time','Home','Away','HG','AG'], headers
|
39
|
+
end
|
40
|
+
|
41
|
+
end # class TestHeaders
|
data/test/test_misc.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
###
|
4
|
+
# to run use
|
5
|
+
# ruby -I ./lib -I ./test test/test_misc.rb
|
6
|
+
|
7
|
+
|
8
|
+
require 'helper'
|
9
|
+
|
10
|
+
class TestMiscellaneous < MiniTest::Test
|
11
|
+
|
12
|
+
def test_test_eng
|
13
|
+
path = "#{CsvUtils.test_data_dir}/eng-england/2017-18/E0.csv"
|
14
|
+
|
15
|
+
CsvUtils.test( path )
|
16
|
+
assert true
|
17
|
+
end
|
18
|
+
|
19
|
+
def test_test_de
|
20
|
+
path = "#{CsvUtils.test_data_dir}/de-deutschland/bundesliga.csv"
|
21
|
+
|
22
|
+
CsvUtils.test( path, sep: ';' )
|
23
|
+
assert true
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_test_at
|
27
|
+
path = "#{CsvUtils.test_data_dir}/at-austria/AUT.csv"
|
28
|
+
|
29
|
+
CsvUtils.test( path )
|
30
|
+
assert true
|
31
|
+
end
|
32
|
+
|
33
|
+
end # class TestMiscellaneous
|