-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeetup_test.exs
372 lines (279 loc) · 9.57 KB
/
meetup_test.exs
1
2
3
4
5
6
7
8
9
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
47
48
49
50
51
52
53
54
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
Code.load_file("meetup.exs")
ExUnit.start
defmodule MeetupTest do
use ExUnit.Case, async: true
doctest Meetup
test "monteenth of may 2013" do
assert {2013, 5, 13} == Meetup.monteenth(5, 2013)
end
test "monteenth of august 2013" do
assert {2013, 8, 19} == Meetup.monteenth(8, 2013)
end
test "monteenth of september 2013" do
assert {2013, 9, 16} == Meetup.monteenth(9, 2013)
end
test "tuesteenth of march 2013" do
assert {2013, 3, 19} == Meetup.tuesteenth(3, 2013)
end
test "tuesteenth of april 2013" do
assert {2013, 4, 16} == Meetup.tuesteenth(4, 2013)
end
test "tuesteenth of august 2013" do
assert {2013, 8, 13} == Meetup.tuesteenth(8, 2013)
end
test "wednesteenth of january 2013" do
assert {2013, 1, 16} == Meetup.wednesteenth(1, 2013)
end
test "wednesteenth of february 2013" do
assert {2013, 2, 13} == Meetup.wednesteenth(2, 2013)
end
test "wednesteenth of june 2013" do
assert {2013, 6, 19} == Meetup.wednesteenth(6, 2013)
end
test "thursteenth of may 2013" do
assert {2013, 5, 16} == Meetup.thursteenth(5, 2013)
end
test "thursteenth of june 2013" do
assert {2013, 6, 13} == Meetup.thursteenth(6, 2013)
end
test "thursteenth of september 2013" do
assert {2013, 9, 19} == Meetup.thursteenth(9, 2013)
end
test "friteenth of april 2013" do
assert {2013, 4, 19} == Meetup.friteenth(4, 2013)
end
test "friteenth of august 2013" do
assert {2013, 8, 16} == Meetup.friteenth(8, 2013)
end
test "friteenth of september 2013" do
assert {2013, 9, 13} == Meetup.friteenth(9, 2013)
end
test "saturteenth of february 2013" do
assert {2013, 2, 16} == Meetup.saturteenth(2, 2013)
end
test "saturteenth of april 2013" do
assert {2013, 4, 13} == Meetup.saturteenth(4, 2013)
end
test "saturteenth of october 2013" do
assert {2013, 10, 19} == Meetup.saturteenth(10, 2013)
end
test "sunteenth of map 2013" do
assert {2013, 5, 19} == Meetup.sunteenth(5, 2013)
end
test "sunteenth of june 2013" do
assert {2013, 6, 16} == Meetup.sunteenth(6, 2013)
end
test "sunteenth of october 2013" do
assert {2013, 10, 13} == Meetup.sunteenth(10, 2013)
end
test "first monday of march 2013" do
assert {2013, 3, 4} == Meetup.first_monday(3, 2013)
end
test "first monday of april 2013" do
assert {2013, 4, 1} == Meetup.first_monday(4, 2013)
end
test "first tuesday of may 2013" do
assert {2013, 5, 7} == Meetup.first_tuesday(5, 2013)
end
test "first tuesday of june 2013" do
assert {2013, 6, 4} == Meetup.first_tuesday(6, 2013)
end
test "first wednesday of july 2013" do
assert {2013, 7, 3} == Meetup.first_wednesday(7, 2013)
end
test "first wednesday of august 2013" do
assert {2013, 8, 7} == Meetup.first_wednesday(8, 2013)
end
test "first thursday of september 2013" do
assert {2013, 9, 5} == Meetup.first_thursday(9, 2013)
end
test "first thursday of october 2013" do
assert {2013, 10, 3} == Meetup.first_thursday(10, 2013)
end
test "first friday of november 2013" do
assert {2013, 11, 1} == Meetup.first_friday(11, 2013)
end
test "first friday of december 2013" do
assert {2013, 12, 6} == Meetup.first_friday(12, 2013)
end
test "first saturday of january 2013" do
assert {2013, 1, 5} == Meetup.first_saturday(1, 2013)
end
test "first saturday of february 2013" do
assert {2013, 2, 2} == Meetup.first_saturday(2, 2013)
end
test "first sunday of march 2013" do
assert {2013, 3, 3} == Meetup.first_sunday(3, 2013)
end
test "first sunday of april 2013" do
assert {2013, 4, 7} == Meetup.first_sunday(4, 2013)
end
test "second monday of march 2013" do
assert {2013, 3, 11} == Meetup.second_monday(3, 2013)
end
test "second monday of april 2013" do
assert {2013, 4, 8} == Meetup.second_monday(4, 2013)
end
test "second tuesday of may 2013" do
assert {2013, 5, 14} == Meetup.second_tuesday(5, 2013)
end
test "second tuesday of june 2013" do
assert {2013, 6, 11} == Meetup.second_tuesday(6, 2013)
end
test "second wednesday of july 2013" do
assert {2013, 7, 10} == Meetup.second_wednesday(7, 2013)
end
test "second wednesday of august 2013" do
assert {2013, 8, 14} == Meetup.second_wednesday(8, 2013)
end
test "second thursday of september 2013" do
assert {2013, 9, 12} == Meetup.second_thursday(9, 2013)
end
test "second thursday of october 2013" do
assert {2013, 10, 10} == Meetup.second_thursday(10, 2013)
end
test "second friday of november 2013" do
assert {2013, 11, 8} == Meetup.second_friday(11, 2013)
end
test "second friday of december 2013" do
assert {2013, 12, 13} == Meetup.second_friday(12, 2013)
end
test "second saturday of january 2013" do
assert {2013, 1, 12} == Meetup.second_saturday(1, 2013)
end
test "second saturday of february 2013" do
assert {2013, 2, 9} == Meetup.second_saturday(2, 2013)
end
test "second sunday of march 2013" do
assert {2013, 3, 10} == Meetup.second_sunday(3, 2013)
end
test "second sunday of april 2013" do
assert {2013, 4, 14} == Meetup.second_sunday(4, 2013)
end
test "third monday of march 2013" do
assert {2013, 3, 18} == Meetup.third_monday(3, 2013)
end
test "third monday of april 2013" do
assert {2013, 4, 15} == Meetup.third_monday(4, 2013)
end
test "third tuesday of may 2013" do
assert {2013, 5, 21} == Meetup.third_tuesday(5, 2013)
end
test "third tuesday of june 2013" do
assert {2013, 6, 18} == Meetup.third_tuesday(6, 2013)
end
test "third wednesday of july 2013" do
assert {2013, 7, 17} == Meetup.third_wednesday(7, 2013)
end
test "third wednesday of august 2013" do
assert {2013, 8, 21} == Meetup.third_wednesday(8, 2013)
end
test "third thursday of september 2013" do
assert {2013, 9, 19} == Meetup.third_thursday(9, 2013)
end
test "third thursday of october 2013" do
assert {2013, 10, 17} == Meetup.third_thursday(10, 2013)
end
test "third friday of november 2013" do
assert {2013, 11, 15} == Meetup.third_friday(11, 2013)
end
test "third friday of december 2013" do
assert {2013, 12, 20} == Meetup.third_friday(12, 2013)
end
test "third saturday of january 2013" do
assert {2013, 1, 19} == Meetup.third_saturday(1, 2013)
end
test "third saturday of february 2013" do
assert {2013, 2, 16} == Meetup.third_saturday(2, 2013)
end
test "third sunday of march 2013" do
assert {2013, 3, 17} == Meetup.third_sunday(3, 2013)
end
test "third sunday of april 2013" do
assert {2013, 4, 21} == Meetup.third_sunday(4, 2013)
end
test "fourth monday of march 2013" do
assert {2013, 3, 25} == Meetup.fourth_monday(3, 2013)
end
test "fourth monday of april 2013" do
assert {2013, 4, 22} == Meetup.fourth_monday(4, 2013)
end
test "fourth tuesday of may 2013" do
assert {2013, 5, 28} == Meetup.fourth_tuesday(5, 2013)
end
test "fourth tuesday of june 2013" do
assert {2013, 6, 25} == Meetup.fourth_tuesday(6, 2013)
end
test "fourth wednesday of july 2013" do
assert {2013, 7, 24} == Meetup.fourth_wednesday(7, 2013)
end
test "fourth wednesday of august 2013" do
assert {2013, 8, 28} == Meetup.fourth_wednesday(8, 2013)
end
test "fourth thursday of september 2013" do
assert {2013, 9, 26} == Meetup.fourth_thursday(9, 2013)
end
test "fourth thursday of october 2013" do
assert {2013, 10, 24} == Meetup.fourth_thursday(10, 2013)
end
test "fourth friday of november 2013" do
assert {2013, 11, 22} == Meetup.fourth_friday(11, 2013)
end
test "fourth friday of december 2013" do
assert {2013, 12, 27} == Meetup.fourth_friday(12, 2013)
end
test "fourth saturday of january 2013" do
assert {2013, 1, 26} == Meetup.fourth_saturday(1, 2013)
end
test "fourth saturday of february 2013" do
assert {2013, 2, 23} == Meetup.fourth_saturday(2, 2013)
end
test "fourth sunday of march 2013" do
assert {2013, 3, 24} == Meetup.fourth_sunday(3, 2013)
end
test "fourth sunday of april 2013" do
assert {2013, 4, 28} == Meetup.fourth_sunday(4, 2013)
end
test "last monday of march 2013" do
assert {2013, 3, 25} == Meetup.last_monday(3, 2013)
end
test "last monday of april 2013" do
assert {2013, 4, 29} == Meetup.last_monday(4, 2013)
end
test "last tuesday of may 2013" do
assert {2013, 5, 28} == Meetup.last_tuesday(5, 2013)
end
test "last tuesday of june 2013" do
assert {2013, 6, 25} == Meetup.last_tuesday(6, 2013)
end
test "last wednesday of july 2013" do
assert {2013, 7, 31} == Meetup.last_wednesday(7, 2013)
end
test "last wednesday of august 2013" do
assert {2013, 8, 28} == Meetup.last_wednesday(8, 2013)
end
test "last thursday of september 2013" do
assert {2013, 9, 26} == Meetup.last_thursday(9, 2013)
end
test "last thursday of october 2013" do
assert {2013, 10, 31} == Meetup.last_thursday(10, 2013)
end
test "last friday of november 2013" do
assert {2013, 11, 29} == Meetup.last_friday(11, 2013)
end
test "last friday of december 2013" do
assert {2013, 12, 27} == Meetup.last_friday(12, 2013)
end
test "last saturday of january 2013" do
assert {2013, 1, 26} == Meetup.last_saturday(1, 2013)
end
test "last saturday of february 2013" do
assert {2013, 2, 23} == Meetup.last_saturday(2, 2013)
end
test "last sunday of march 2013" do
assert {2013, 3, 31} == Meetup.last_sunday(3, 2013)
end
test "last sunday of april 2013" do
assert {2013, 4, 28} == Meetup.last_sunday(4, 2013)
end
end