forked from holidays/definitions
-
Notifications
You must be signed in to change notification settings - Fork 5
/
mz.yaml
95 lines (92 loc) · 1.71 KB
/
mz.yaml
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
# Mozambique holiday definitions for the Holidays gem!
# Source:
# http://www.officeholidays.com/countries/mozambique/2017.php
months:
1:
- name: New Year's Day
regions: [mz]
mday: 1
observed: to_monday_if_weekend(date)
2:
- name: Heroes' Day
regions: [mz]
mday: 3
4:
- name: Women's Day
regions: [mz]
mday: 7
5:
- name: Worker's Day
regions: [mz]
mday: 1
6:
- name: Independence Day
regions: [mz]
mday: 25
9:
- name: Victory Day
regions: [mz]
mday: 7
- name: Revolution Day
regions: [mz]
mday: 25
10:
- name: Day of Peace and Reconciliation
regions: [mz]
mday: 4
12:
- name: Family Day
regions: [mz]
mday: 25
tests:
- given:
date: '2017-01-01'
regions: ["mz"]
expect:
name: "New Year's Day"
- given:
date: '2017-01-02'
regions: ["mz"]
options: ["observed"]
expect:
name: "New Year's Day"
- given:
date: '2017-02-03'
regions: ["mz"]
expect:
name: "Heroes' Day"
- given:
date: '2017-04-07'
regions: ["mz"]
expect:
name: "Women's Day"
- given:
date: '2017-05-01'
regions: ["mz"]
expect:
name: "Worker's Day"
- given:
date: '2017-06-25'
regions: ["mz"]
expect:
name: "Independence Day"
- given:
date: '2017-09-07'
regions: ["mz"]
expect:
name: "Victory Day"
- given:
date: '2017-09-25'
regions: ["mz"]
expect:
name: "Revolution Day"
- given:
date: '2017-10-04'
regions: ["mz"]
expect:
name: "Day of Peace and Reconciliation"
- given:
date: '2017-12-25'
regions: ["mz"]
expect:
name: "Family Day"