forked from holidays/definitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cr.yaml
100 lines (99 loc) · 1.88 KB
/
cr.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
96
97
98
99
100
# Costa Rican holiday definitions for the Ruby Holiday gem.
#
#
# Updated: 2014-11-22.
#
# Sources:
# - http://en.wikipedia.org/wiki/Public_holidays_in_Costa_Rica
#
months:
0:
- name: Jueves Santo
regions: [cr]
function: easter(year)
function_modifier: -3
- name: Viernes Santo
regions: [cr]
function: easter(year)
function_modifier: -2
1:
- name: Año Nuevo
regions: [cr]
mday: 1
4:
- name: Día de Juan Santamaría
regions: [cr]
mday: 11
5:
- name: Día del Trabajador
regions: [cr]
mday: 1
7:
- name: Día de la Anexión de Guanacaste
regions: [cr]
mday: 25
8:
- name: Día de la Virgen de los Angeles
regions: [cr]
mday: 2
- name: Día de la Madre
regions: [cr]
mday: 15
9:
- name: Día de la Independencia
regions: [cr]
mday: 15
10:
- name: Día de las Culturas
regions: [cr]
mday: 12
12:
- name: Navidad
regions: [cr]
mday: 25
tests:
- given:
date: '2015-01-01'
regions: ["cr"]
expect:
name: "Año Nuevo"
- given:
date: '2015-04-11'
regions: ["cr"]
expect:
name: "Día de Juan Santamaría"
- given:
date: '2015-05-01'
regions: ["cr"]
expect:
name: "Día del Trabajador"
- given:
date: '2015-07-25'
regions: ["cr"]
expect:
name: "Día de la Anexión de Guanacaste"
- given:
date: '2015-08-02'
regions: ["cr"]
expect:
name: "Día de la Virgen de los Angeles"
- given:
date: '2015-08-15'
regions: ["cr"]
expect:
name: "Día de la Madre"
- given:
date: '2015-09-15'
regions: ["cr"]
expect:
name: "Día de la Independencia"
- given:
date: '2015-10-12'
regions: ["cr"]
expect:
name: "Día de las Culturas"
- given:
date: '2016-12-25'
regions: ["cr"]
expect:
name: "Navidad"