holidays 5.7.0 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/.gitmodules +1 -1
  3. data/CHANGELOG.md +11 -0
  4. data/lib/generated_definitions/north_america.rb +1 -1
  5. data/lib/generated_definitions/tr.rb +1 -0
  6. data/lib/generated_definitions/us.rb +1 -1
  7. data/lib/holidays/definition/context/generator.rb +5 -36
  8. data/lib/holidays/definition/decorator/test.rb +37 -0
  9. data/lib/holidays/definition/entity/test.rb +11 -0
  10. data/lib/holidays/definition/generator/test.rb +51 -0
  11. data/lib/holidays/definition/parser/test.rb +86 -0
  12. data/lib/holidays/definition/validator/test.rb +71 -0
  13. data/lib/holidays/errors.rb +3 -0
  14. data/lib/holidays/factory/definition.rb +24 -0
  15. data/lib/holidays/version.rb +1 -1
  16. data/test/coverage_report.rb +1 -0
  17. data/test/data/test_custom_year_range_holiday_defs.yaml +7 -0
  18. data/test/data/test_multiple_custom_holiday_defs.yaml +7 -4
  19. data/test/data/test_single_custom_holiday_defs.yaml +7 -4
  20. data/test/data/test_single_custom_holiday_with_custom_procs.yaml +11 -7
  21. data/test/defs/test_defs_ar.rb +33 -19
  22. data/test/defs/test_defs_at.rb +14 -11
  23. data/test/defs/test_defs_au.rb +172 -141
  24. data/test/defs/test_defs_be_fr.rb +23 -14
  25. data/test/defs/test_defs_be_nl.rb +23 -14
  26. data/test/defs/test_defs_bg.rb +29 -17
  27. data/test/defs/test_defs_br.rb +33 -19
  28. data/test/defs/test_defs_ca.rb +175 -176
  29. data/test/defs/test_defs_ch.rb +29 -23
  30. data/test/defs/test_defs_cl.rb +49 -27
  31. data/test/defs/test_defs_cr.rb +17 -11
  32. data/test/defs/test_defs_cz.rb +25 -15
  33. data/test/defs/test_defs_de.rb +52 -61
  34. data/test/defs/test_defs_dk.rb +31 -19
  35. data/test/defs/test_defs_ecb_target.rb +14 -10
  36. data/test/defs/test_defs_ee.rb +28 -20
  37. data/test/defs/test_defs_el.rb +29 -17
  38. data/test/defs/test_defs_es.rb +114 -52
  39. data/test/defs/test_defs_europe.rb +1154 -715
  40. data/test/defs/test_defs_federal_reserve.rb +99 -57
  41. data/test/defs/test_defs_fedex.rb +19 -12
  42. data/test/defs/test_defs_fi.rb +47 -27
  43. data/test/defs/test_defs_fr.rb +29 -24
  44. data/test/defs/test_defs_gb.rb +90 -51
  45. data/test/defs/test_defs_ge.rb +40 -28
  46. data/test/defs/test_defs_hk.rb +47 -26
  47. data/test/defs/test_defs_hr.rb +32 -18
  48. data/test/defs/test_defs_hu.rb +26 -16
  49. data/test/defs/test_defs_ie.rb +41 -25
  50. data/test/defs/test_defs_is.rb +39 -22
  51. data/test/defs/test_defs_it.rb +23 -14
  52. data/test/defs/test_defs_jp.rb +112 -59
  53. data/test/defs/test_defs_kr.rb +25 -17
  54. data/test/defs/test_defs_li.rb +20 -20
  55. data/test/defs/test_defs_lt.rb +51 -30
  56. data/test/defs/test_defs_lu.rb +17 -12
  57. data/test/defs/test_defs_ma.rb +17 -11
  58. data/test/defs/test_defs_mt_en.rb +28 -19
  59. data/test/defs/test_defs_mt_mt.rb +28 -19
  60. data/test/defs/test_defs_mx.rb +33 -22
  61. data/test/defs/test_defs_my.rb +11 -8
  62. data/test/defs/test_defs_nerc.rb +17 -11
  63. data/test/defs/test_defs_nl.rb +21 -13
  64. data/test/defs/test_defs_no.rb +31 -18
  65. data/test/defs/test_defs_north_america.rb +507 -393
  66. data/test/defs/test_defs_nyse.rb +26 -15
  67. data/test/defs/test_defs_nz.rb +47 -28
  68. data/test/defs/test_defs_pe.rb +35 -20
  69. data/test/defs/test_defs_ph.rb +17 -11
  70. data/test/defs/test_defs_pl.rb +200 -119
  71. data/test/defs/test_defs_pt.rb +33 -24
  72. data/test/defs/test_defs_ro.rb +39 -24
  73. data/test/defs/test_defs_rs_cyrl.rb +33 -26
  74. data/test/defs/test_defs_rs_la.rb +33 -26
  75. data/test/defs/test_defs_ru.rb +22 -16
  76. data/test/defs/test_defs_scandinavia.rb +193 -116
  77. data/test/defs/test_defs_se.rb +47 -28
  78. data/test/defs/test_defs_sg.rb +13 -9
  79. data/test/defs/test_defs_si.rb +93 -24
  80. data/test/defs/test_defs_sk.rb +29 -17
  81. data/test/defs/test_defs_tn.rb +15 -10
  82. data/test/defs/test_defs_tr.rb +39 -30
  83. data/test/defs/test_defs_united_nations.rb +0 -1
  84. data/test/defs/test_defs_ups.rb +19 -12
  85. data/test/defs/test_defs_us.rb +333 -217
  86. data/test/defs/test_defs_ve.rb +23 -16
  87. data/test/defs/test_defs_vi.rb +10 -8
  88. data/test/defs/test_defs_za.rb +23 -14
  89. data/test/holidays/definition/context/test_generator.rb +40 -13
  90. data/test/holidays/definition/decorator/test_test.rb +123 -0
  91. data/test/holidays/definition/generator/test_test.rb +113 -0
  92. data/test/holidays/definition/parser/test_test.rb +142 -0
  93. data/test/holidays/definition/validator/test_region.rb +5 -0
  94. data/test/holidays/definition/validator/test_test.rb +60 -0
  95. metadata +15 -8
  96. data/test/holidays/factory/test_date_calculator.rb +0 -32
  97. data/test/holidays/factory/test_definition.rb +0 -62
  98. data/test/holidays/factory/test_finder.rb +0 -25
@@ -7,27 +7,35 @@ require File.expand_path(File.dirname(__FILE__)) + '/../test_helper'
7
7
  class EeDefinitionTests < Test::Unit::TestCase # :nodoc:
8
8
 
9
9
  def test_ee
10
- { Date.civil(2017, 1, 1) => 'uusaasta',
11
- Date.civil(2017, 2, 24) => 'iseseisvuspäev',
12
- Date.civil(2017, 5, 1) => 'kevadpüha',
13
- Date.civil(2017, 6, 23) => 'võidupüha ja jaanilaupäev',
14
- Date.civil(2017, 6, 24) => 'jaanipäev',
15
- Date.civil(2017, 8, 20) => 'taasiseseisvumispäev',
16
- Date.civil(2017, 12, 24) => 'jõululaupäev',
17
- Date.civil(2017, 12, 25) => 'esimene jõulupüha',
18
- Date.civil(2017, 12, 26) => 'teine jõulupüha' }.each do |date, name|
19
- assert_equal name, (Holidays.on(date, :ee)[0] || {})[:name]
20
- end
10
+ assert_equal "uusaasta", (Holidays.on(Date.civil(2017, 1, 1), [:ee])[0] || {})[:name]
21
11
 
22
- [Date.civil(2017, 4, 14), Date.civil(2018, 3, 30), Date.civil(2019, 4, 19)].each do |date|
23
- assert_equal 'suur reede', Holidays.on(date, :ee)[0][:name]
24
- end
25
- [Date.civil(2017, 4, 16), Date.civil(2018, 4, 01), Date.civil(2019, 4, 21)].each do |date|
26
- assert_equal 'ülestõusmispühade 1. püha', Holidays.on(date, :ee)[0][:name]
27
- end
28
- [Date.civil(2017, 6, 4), Date.civil(2018, 5, 20), Date.civil(2019, 6, 9)].each do |date|
29
- assert_equal 'nelipühade 1. püha', Holidays.on(date, :ee)[0][:name]
30
- end
12
+ assert_equal "iseseisvuspäev", (Holidays.on(Date.civil(2017, 2, 24), [:ee])[0] || {})[:name]
13
+
14
+ assert_equal "kevadpüha", (Holidays.on(Date.civil(2017, 5, 1), [:ee])[0] || {})[:name]
15
+
16
+ assert_equal "võidupüha ja jaanilaupäev", (Holidays.on(Date.civil(2017, 6, 23), [:ee])[0] || {})[:name]
17
+
18
+ assert_equal "jaanipäev", (Holidays.on(Date.civil(2017, 6, 24), [:ee])[0] || {})[:name]
19
+
20
+ assert_equal "taasiseseisvumispäev", (Holidays.on(Date.civil(2017, 8, 20), [:ee])[0] || {})[:name]
21
+
22
+ assert_equal "jõululaupäev", (Holidays.on(Date.civil(2017, 12, 24), [:ee])[0] || {})[:name]
23
+
24
+ assert_equal "esimene jõulupüha", (Holidays.on(Date.civil(2017, 12, 25), [:ee])[0] || {})[:name]
25
+
26
+ assert_equal "teine jõulupüha", (Holidays.on(Date.civil(2017, 12, 26), [:ee])[0] || {})[:name]
27
+
28
+ assert_equal "suur reede", (Holidays.on(Date.civil(2017, 4, 14), [:ee])[0] || {})[:name]
29
+ assert_equal "suur reede", (Holidays.on(Date.civil(2018, 3, 30), [:ee])[0] || {})[:name]
30
+ assert_equal "suur reede", (Holidays.on(Date.civil(2019, 4, 19), [:ee])[0] || {})[:name]
31
+
32
+ assert_equal "ülestõusmispühade 1. püha", (Holidays.on(Date.civil(2017, 4, 16), [:ee])[0] || {})[:name]
33
+ assert_equal "ülestõusmispühade 1. püha", (Holidays.on(Date.civil(2018, 4, 1), [:ee])[0] || {})[:name]
34
+ assert_equal "ülestõusmispühade 1. püha", (Holidays.on(Date.civil(2019, 4, 21), [:ee])[0] || {})[:name]
35
+
36
+ assert_equal "nelipühade 1. püha", (Holidays.on(Date.civil(2017, 6, 4), [:ee])[0] || {})[:name]
37
+ assert_equal "nelipühade 1. püha", (Holidays.on(Date.civil(2018, 5, 20), [:ee])[0] || {})[:name]
38
+ assert_equal "nelipühade 1. püha", (Holidays.on(Date.civil(2019, 6, 9), [:ee])[0] || {})[:name]
31
39
 
32
40
  end
33
41
  end
@@ -7,23 +7,35 @@ require File.expand_path(File.dirname(__FILE__)) + '/../test_helper'
7
7
  class ElDefinitionTests < Test::Unit::TestCase # :nodoc:
8
8
 
9
9
  def test_el
10
- {Date.civil(2011,1,1) => 'Πρωτοχρονιά',
11
- Date.civil(2011,1,6) => 'Θεοφάνεια',
12
- Date.civil(2011,4,22) => 'Μεγάλη Παρασκευή',
13
- Date.civil(1970,4,25) => 'Μεγάλο Σάββατο',
14
- Date.civil(1985,4,14) => 'Κυριακή του Πάσχα',
15
- Date.civil(2011,4,24) => 'Κυριακή του Πάσχα',
16
- Date.civil(2027,5,2) => 'Κυριακή του Πάσχα',
17
- Date.civil(2046,4,30) => 'Δευτέρα του Πάσχα',
18
- Date.civil(2011,5,1) => 'Πρωτομαγιά',
19
- Date.civil(2011,6,13) => 'Αγίου Πνεύματος',
20
- Date.civil(2012,6,4) => 'Αγίου Πνεύματος',
21
- Date.civil(2011,3,7) => 'Καθαρά Δευτέρα',
22
- Date.civil(2012,2,27) => 'Καθαρά Δευτέρα',
23
- Date.civil(2011,12,25) => 'Χριστούγεννα',
24
- Date.civil(2011,12,26) => 'Δεύτερη ημέρα των Χριστουγέννων'}.each do |date, name|
25
- assert_equal name, (Holidays.on(date, :el, :informal)[0] || {})[:name]
26
- end
10
+ assert_equal "Πρωτοχρονιά", (Holidays.on(Date.civil(2011, 1, 1), [:el], [:informal])[0] || {})[:name]
11
+
12
+ assert_equal "Θεοφάνεια", (Holidays.on(Date.civil(2011, 1, 6), [:el], [:informal])[0] || {})[:name]
13
+
14
+ assert_equal "Μεγάλη Παρασκευή", (Holidays.on(Date.civil(2011, 4, 22), [:el], [:informal])[0] || {})[:name]
15
+
16
+ assert_equal "Μεγάλο Σάββατο", (Holidays.on(Date.civil(1970, 4, 25), [:el], [:informal])[0] || {})[:name]
17
+
18
+ assert_equal "Κυριακή του Πάσχα", (Holidays.on(Date.civil(1985, 4, 14), [:el], [:informal])[0] || {})[:name]
19
+
20
+ assert_equal "Κυριακή του Πάσχα", (Holidays.on(Date.civil(2011, 4, 24), [:el], [:informal])[0] || {})[:name]
21
+
22
+ assert_equal "Κυριακή του Πάσχα", (Holidays.on(Date.civil(2027, 5, 2), [:el], [:informal])[0] || {})[:name]
23
+
24
+ assert_equal "Δευτέρα του Πάσχα", (Holidays.on(Date.civil(2046, 4, 30), [:el], [:informal])[0] || {})[:name]
25
+
26
+ assert_equal "Πρωτομαγιά", (Holidays.on(Date.civil(2011, 5, 1), [:el], [:informal])[0] || {})[:name]
27
+
28
+ assert_equal "Αγίου Πνεύματος", (Holidays.on(Date.civil(2011, 6, 13), [:el], [:informal])[0] || {})[:name]
29
+
30
+ assert_equal "Αγίου Πνεύματος", (Holidays.on(Date.civil(2012, 6, 4), [:el], [:informal])[0] || {})[:name]
31
+
32
+ assert_equal "Καθαρά Δευτέρα", (Holidays.on(Date.civil(2011, 3, 7), [:el], [:informal])[0] || {})[:name]
33
+
34
+ assert_equal "Καθαρά Δευτέρα", (Holidays.on(Date.civil(2012, 2, 27), [:el], [:informal])[0] || {})[:name]
35
+
36
+ assert_equal "Χριστούγεννα", (Holidays.on(Date.civil(2011, 12, 25), [:el], [:informal])[0] || {})[:name]
37
+
38
+ assert_equal "Δεύτερη ημέρα των Χριστουγέννων", (Holidays.on(Date.civil(2011, 12, 26), [:el], [:informal])[0] || {})[:name]
27
39
 
28
40
  end
29
41
  end
@@ -7,67 +7,129 @@ require File.expand_path(File.dirname(__FILE__)) + '/../test_helper'
7
7
  class EsDefinitionTests < Test::Unit::TestCase # :nodoc:
8
8
 
9
9
  def test_es
10
- {Date.civil(2009,1,1) => 'Año Nuevo',
11
- Date.civil(2009,1,6) => 'Día de Reyes',
12
- Date.civil(2009,4,10) => 'Viernes Santo',
13
- Date.civil(2009,5,1) => 'Día del Trabajador',
14
- Date.civil(2009,8,15) => 'Asunción',
15
- Date.civil(2009,10,12) => 'Día de la Hispanidad',
16
- Date.civil(2009,11,1) => 'Todos los Santos',
17
- Date.civil(2009,12,6) => 'Día de la Constitución',
18
- Date.civil(2009,12,8) => 'Inmaculada Concepción',
19
- Date.civil(2009,12,25) => 'Navidad del Señor'}.each do |date, name|
20
- assert_equal name, (Holidays.on(date, :es, :informal)[0] || {})[:name]
21
- end
10
+ assert_equal "Año Nuevo", (Holidays.on(Date.civil(2009, 1, 1), [:es], [:informal])[0] || {})[:name]
22
11
 
23
- [:es_pv, :es_na, :es_an, :es_ib, :es_cm, :es_mu, :es_m, :es_ar, :es_cl, :es_cn, :es_lo, :es_ga, :es_ce, :es_o, :es_ex, :es_].each do |r|
24
- assert_equal 'Jueves Santo', Holidays.on(Date.civil(2009,4,9), r)[0][:name]
25
- end
26
- [:es_pv, :es_ct, :es_na, :es_v, :es_vc, :es_].each do |r|
27
- assert_equal 'Lunes de Pascua', Holidays.on(Date.civil(2009,4,13), r)[0][:name]
28
- end
12
+ assert_equal "Día de Reyes", (Holidays.on(Date.civil(2009, 1, 6), [:es], [:informal])[0] || {})[:name]
29
13
 
30
- assert_equal 'Jueves Santo', Holidays.on(Date.civil(2009,4,9), :es_an)[0][:name]
14
+ assert_equal "Viernes Santo", (Holidays.on(Date.civil(2009, 4, 10), [:es], [:informal])[0] || {})[:name]
31
15
 
32
- [:es_v, :es_vc, :es_cm, :es_mu, :es_m, :es_].each do |r|
33
- assert_equal 'San José', Holidays.on(Date.civil(2009,3,19), r)[0][:name]
34
- end
16
+ assert_equal "Día del Trabajador", (Holidays.on(Date.civil(2009, 5, 1), [:es], [:informal])[0] || {})[:name]
35
17
 
36
- [:es_cl].each do |r|
37
- assert_equal 'Día de Castilla y León', Holidays.on(Date.civil(2009,4,23), r)[0][:name]
38
- end
18
+ assert_equal "Asunción", (Holidays.on(Date.civil(2009, 8, 15), [:es], [:informal])[0] || {})[:name]
39
19
 
40
- [:es_ar].each do |r|
41
- assert_equal 'San Jorge, Día de Aragón', Holidays.on(Date.civil(2009,4,23), r)[0][:name]
42
- end
20
+ assert_equal "Día de la Hispanidad", (Holidays.on(Date.civil(2009, 10, 12), [:es], [:informal])[0] || {})[:name]
43
21
 
44
- [:es_].each do |r|
45
- assert_equal 'Día de Castilla y León', Holidays.on(Date.civil(2009,4,23), r)[0][:name]
46
- assert_equal 'San Jorge, Día de Aragón', Holidays.on(Date.civil(2009,4,23), r)[1][:name]
47
- end
22
+ assert_equal "Todos los Santos", (Holidays.on(Date.civil(2009, 11, 1), [:es], [:informal])[0] || {})[:name]
48
23
 
49
- [:es_vc, :es_v, :es_].each do |r|
50
- assert_equal 'Día de Valencia', Holidays.on(Date.civil(2009,10,9), r)[0][:name]
51
- end
24
+ assert_equal "Día de la Constitución", (Holidays.on(Date.civil(2009, 12, 6), [:es], [:informal])[0] || {})[:name]
52
25
 
53
- [:es_ib, :es_ct, :es_].each do |r|
54
- assert_equal 'San Esteban', Holidays.on(Date.civil(2009,12,26), r)[0][:name]
55
- end
26
+ assert_equal "Inmaculada Concepción", (Holidays.on(Date.civil(2009, 12, 8), [:es], [:informal])[0] || {})[:name]
27
+
28
+ assert_equal "Navidad del Señor", (Holidays.on(Date.civil(2009, 12, 25), [:es], [:informal])[0] || {})[:name]
29
+
30
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_pv], [:informal])[0] || {})[:name]
31
+
32
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_na], [:informal])[0] || {})[:name]
33
+
34
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_an], [:informal])[0] || {})[:name]
35
+
36
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_ib], [:informal])[0] || {})[:name]
37
+
38
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_cm], [:informal])[0] || {})[:name]
39
+
40
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_mu], [:informal])[0] || {})[:name]
41
+
42
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_m], [:informal])[0] || {})[:name]
43
+
44
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_ar], [:informal])[0] || {})[:name]
45
+
46
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_cl], [:informal])[0] || {})[:name]
47
+
48
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_cn], [:informal])[0] || {})[:name]
49
+
50
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_lo], [:informal])[0] || {})[:name]
51
+
52
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_ga], [:informal])[0] || {})[:name]
53
+
54
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_ce], [:informal])[0] || {})[:name]
55
+
56
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_o], [:informal])[0] || {})[:name]
57
+
58
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_ex], [:informal])[0] || {})[:name]
59
+
60
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_], [:informal])[0] || {})[:name]
61
+
62
+ assert_equal "Lunes de Pascua", (Holidays.on(Date.civil(2009, 4, 13), [:es_pv])[0] || {})[:name]
63
+
64
+ assert_equal "Lunes de Pascua", (Holidays.on(Date.civil(2009, 4, 13), [:es_ct])[0] || {})[:name]
65
+
66
+ assert_equal "Lunes de Pascua", (Holidays.on(Date.civil(2009, 4, 13), [:es_na])[0] || {})[:name]
67
+
68
+ assert_equal "Lunes de Pascua", (Holidays.on(Date.civil(2009, 4, 13), [:es_v])[0] || {})[:name]
69
+
70
+ assert_equal "Lunes de Pascua", (Holidays.on(Date.civil(2009, 4, 13), [:es_vc])[0] || {})[:name]
71
+
72
+ assert_equal "Lunes de Pascua", (Holidays.on(Date.civil(2009, 4, 13), [:es_])[0] || {})[:name]
73
+
74
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_an])[0] || {})[:name]
75
+
76
+ assert_equal "San José", (Holidays.on(Date.civil(2009, 3, 19), [:es_v])[0] || {})[:name]
77
+
78
+ assert_equal "San José", (Holidays.on(Date.civil(2009, 3, 19), [:es_vc])[0] || {})[:name]
79
+
80
+ assert_equal "San José", (Holidays.on(Date.civil(2009, 3, 19), [:es_cm])[0] || {})[:name]
81
+
82
+ assert_equal "San José", (Holidays.on(Date.civil(2009, 3, 19), [:es_mu])[0] || {})[:name]
83
+
84
+ assert_equal "San José", (Holidays.on(Date.civil(2009, 3, 19), [:es_m])[0] || {})[:name]
85
+
86
+ assert_equal "San José", (Holidays.on(Date.civil(2009, 3, 19), [:es_])[0] || {})[:name]
87
+
88
+ assert_equal "Día de Castilla y León", (Holidays.on(Date.civil(2009, 4, 23), [:es_cl])[0] || {})[:name]
89
+
90
+ assert_equal "San Jorge, Día de Aragón", (Holidays.on(Date.civil(2009, 4, 23), [:es_ar])[0] || {})[:name]
91
+
92
+ assert_equal "Día de Castilla y León", (Holidays.on(Date.civil(2009, 4, 23), [:es_])[0] || {})[:name]
93
+
94
+ assert_equal "Día de Valencia", (Holidays.on(Date.civil(2009, 10, 9), [:es_vc])[0] || {})[:name]
95
+
96
+ assert_equal "Día de Valencia", (Holidays.on(Date.civil(2009, 10, 9), [:es_v])[0] || {})[:name]
97
+
98
+ assert_equal "Día de Valencia", (Holidays.on(Date.civil(2009, 10, 9), [:es_])[0] || {})[:name]
99
+
100
+ assert_equal "San Esteban", (Holidays.on(Date.civil(2009, 12, 26), [:es_ib])[0] || {})[:name]
101
+
102
+ assert_equal "San Esteban", (Holidays.on(Date.civil(2009, 12, 26), [:es_ct])[0] || {})[:name]
103
+
104
+ assert_equal "San Esteban", (Holidays.on(Date.civil(2009, 12, 26), [:es_])[0] || {})[:name]
105
+
106
+ assert_equal "Año Nuevo", (Holidays.on(Date.civil(2012, 1, 1), [:es])[0] || {})[:name]
107
+
108
+ assert_equal "Año Nuevo", (Holidays.on(Date.civil(2012, 1, 2), [:es], [:observed])[0] || {})[:name]
109
+
110
+ assert_equal "Día de Andalucía", (Holidays.on(Date.civil(2009, 2, 28), [:es_an])[0] || {})[:name]
111
+
112
+ assert_equal "Día de las Islas Baleares", (Holidays.on(Date.civil(2009, 3, 1), [:es_ib])[0] || {})[:name]
113
+
114
+ assert_equal "Fiesta de la Comunidad", (Holidays.on(Date.civil(2006, 5, 2), [:es_m])[0] || {})[:name]
115
+
116
+ assert_equal "Día de las Canarias", (Holidays.on(Date.civil(2006, 5, 30), [:es_cn])[0] || {})[:name]
117
+
118
+ assert_equal "Día de la Región Castilla-La Mancha", (Holidays.on(Date.civil(2009, 5, 31), [:es_cm])[0] || {})[:name]
119
+
120
+ assert_equal "Día de la Región de Murcia", (Holidays.on(Date.civil(2009, 6, 9), [:es_mu])[0] || {})[:name]
121
+
122
+ assert_equal "Día de La Rioja", (Holidays.on(Date.civil(2009, 6, 9), [:es_lo])[0] || {})[:name]
123
+
124
+ assert_equal "Santiago Apostol", (Holidays.on(Date.civil(2009, 7, 23), [:es_ga])[0] || {})[:name]
125
+
126
+ assert_equal "Día de Ceuta", (Holidays.on(Date.civil(2009, 9, 2), [:es_ce])[0] || {})[:name]
127
+
128
+ assert_equal "Día de Asturias", (Holidays.on(Date.civil(2009, 9, 8), [:es_o])[0] || {})[:name]
129
+
130
+ assert_equal "Día de Extremadura", (Holidays.on(Date.civil(2009, 9, 8), [:es_ex])[0] || {})[:name]
56
131
 
57
- assert_equal 'Año Nuevo', Holidays.on(Date.civil(2012,1,1), :es)[0][:name]
58
- assert_equal 'Año Nuevo', Holidays.on(Date.civil(2012,1,2), :es, :observed)[0][:name]
59
- assert_equal 'Día de Andalucía', Holidays.on(Date.civil(2009,2,28), :es_an)[0][:name]
60
- assert_equal 'Día de las Islas Baleares', Holidays.on(Date.civil(2009,3,1), :es_ib)[0][:name]
61
- assert_equal 'Fiesta de la Comunidad', Holidays.on(Date.civil(2006,5,2), :es_m)[0][:name]
62
- assert_equal 'Día de las Canarias', Holidays.on(Date.civil(2006,5,30), :es_cn)[0][:name]
63
- assert_equal 'Día de la Región Castilla-La Mancha', Holidays.on(Date.civil(2009,5,31), :es_cm)[0][:name]
64
- assert_equal 'Día de la Región de Murcia', Holidays.on(Date.civil(2009,6,9), :es_mu)[0][:name]
65
- assert_equal 'Día de La Rioja', Holidays.on(Date.civil(2009,6,9), :es_lo)[0][:name]
66
- assert_equal 'Santiago Apostol', Holidays.on(Date.civil(2009,7,23), :es_ga)[0][:name]
67
- assert_equal 'Día de Ceuta', Holidays.on(Date.civil(2009,9,2), :es_ce)[0][:name]
68
- assert_equal 'Día de Asturias', Holidays.on(Date.civil(2009,9,8), :es_o)[0][:name]
69
- assert_equal 'Día de Extremadura', Holidays.on(Date.civil(2009,9,8), :es_ex)[0][:name]
70
- assert_equal 'Fiesta Nacional de Cataluña', Holidays.on(Date.civil(2009,9,11), :es_ct)[0][:name]
132
+ assert_equal "Fiesta Nacional de Cataluña", (Holidays.on(Date.civil(2009, 9, 11), [:es_ct])[0] || {})[:name]
71
133
 
72
134
  end
73
135
  end
@@ -7,810 +7,1249 @@ require File.expand_path(File.dirname(__FILE__)) + '/../test_helper'
7
7
  class EuropeDefinitionTests < Test::Unit::TestCase # :nodoc:
8
8
 
9
9
  def test_europe
10
- {Date.civil(2009,1,1) => 'Neujahrstag',
11
- Date.civil(2009,4,13) => 'Ostermontag',
12
- Date.civil(2009,5,1) => 'Staatsfeiertag',
13
- Date.civil(2009,5,21) => 'Christi Himmelfahrt',
14
- Date.civil(2009,6,1) => 'Pfingstmontag',
15
- Date.civil(2009,10,26) => 'Nationalfeiertag',
16
- Date.civil(2009,12,25) => '1. Weihnachtstag',
17
- Date.civil(2009,12,26) => '2. Weihnachtstag'}.each do |date, name|
18
- assert_equal name, (Holidays.on(date, :at, :informal)[0] || {})[:name]
19
- end
10
+ assert_equal "Neujahrstag", (Holidays.on(Date.civil(2009, 1, 1), [:at], [:informal])[0] || {})[:name]
11
+
12
+ assert_equal "Ostermontag", (Holidays.on(Date.civil(2009, 4, 13), [:at], [:informal])[0] || {})[:name]
13
+
14
+ assert_equal "Christi Himmelfahrt", (Holidays.on(Date.civil(2009, 5, 21), [:at], [:informal])[0] || {})[:name]
15
+
16
+ assert_equal "Pfingstmontag", (Holidays.on(Date.civil(2009, 6, 1), [:at], [:informal])[0] || {})[:name]
17
+
18
+ assert_equal "Nationalfeiertag", (Holidays.on(Date.civil(2009, 10, 26), [:at], [:informal])[0] || {})[:name]
19
+
20
+ assert_equal "1. Weihnachtstag", (Holidays.on(Date.civil(2009, 12, 25), [:at], [:informal])[0] || {})[:name]
21
+
22
+ assert_equal "2. Weihnachtstag", (Holidays.on(Date.civil(2009, 12, 26), [:at], [:informal])[0] || {})[:name]
23
+
24
+ assert_nil (Holidays.on(Date.civil(2010, 5, 8), [:at])[0] || {})[:name]
25
+
26
+ assert_equal "Jour de l'an", (Holidays.on(Date.civil(2007, 1, 1), [:be_fr], [:informal])[0] || {})[:name]
27
+
28
+ assert_equal "Pâques", (Holidays.on(Date.civil(2007, 4, 8), [:be_fr], [:informal])[0] || {})[:name]
29
+
30
+ assert_equal "Lundi de Pâques", (Holidays.on(Date.civil(2007, 4, 9), [:be_fr], [:informal])[0] || {})[:name]
31
+
32
+ assert_equal "Fête du travail", (Holidays.on(Date.civil(2007, 5, 1), [:be_fr], [:informal])[0] || {})[:name]
33
+
34
+ assert_equal "Ascension", (Holidays.on(Date.civil(2007, 5, 17), [:be_fr], [:informal])[0] || {})[:name]
35
+
36
+ assert_equal "Pentecôte", (Holidays.on(Date.civil(2007, 5, 27), [:be_fr], [:informal])[0] || {})[:name]
37
+
38
+ assert_equal "Lundi de Pentecôte", (Holidays.on(Date.civil(2007, 5, 28), [:be_fr], [:informal])[0] || {})[:name]
39
+
40
+ assert_equal "Fête nationale", (Holidays.on(Date.civil(2007, 7, 21), [:be_fr], [:informal])[0] || {})[:name]
41
+
42
+ assert_equal "Assomption", (Holidays.on(Date.civil(2007, 8, 15), [:be_fr], [:informal])[0] || {})[:name]
43
+
44
+ assert_equal "Toussaint", (Holidays.on(Date.civil(2007, 11, 1), [:be_fr], [:informal])[0] || {})[:name]
45
+
46
+ assert_equal "Armistice 1918", (Holidays.on(Date.civil(2007, 11, 11), [:be_fr], [:informal])[0] || {})[:name]
47
+
48
+ assert_equal "Noël", (Holidays.on(Date.civil(2007, 12, 25), [:be_fr], [:informal])[0] || {})[:name]
49
+
50
+ assert_equal "Nieuwjaar", (Holidays.on(Date.civil(2007, 1, 1), [:be_nl], [:informal])[0] || {})[:name]
51
+
52
+ assert_equal "Pasen", (Holidays.on(Date.civil(2007, 4, 8), [:be_nl], [:informal])[0] || {})[:name]
53
+
54
+ assert_equal "Paasmaandag", (Holidays.on(Date.civil(2007, 4, 9), [:be_nl], [:informal])[0] || {})[:name]
55
+
56
+ assert_equal "Feest van de Arbeid", (Holidays.on(Date.civil(2007, 5, 1), [:be_nl], [:informal])[0] || {})[:name]
57
+
58
+ assert_equal "O.H. Hemelvaart", (Holidays.on(Date.civil(2007, 5, 17), [:be_nl], [:informal])[0] || {})[:name]
59
+
60
+ assert_equal "Pinksteren", (Holidays.on(Date.civil(2007, 5, 27), [:be_nl], [:informal])[0] || {})[:name]
61
+
62
+ assert_equal "Pinkstermaandag", (Holidays.on(Date.civil(2007, 5, 28), [:be_nl], [:informal])[0] || {})[:name]
63
+
64
+ assert_equal "Nationale Feestdag", (Holidays.on(Date.civil(2007, 7, 21), [:be_nl], [:informal])[0] || {})[:name]
65
+
66
+ assert_equal "O.L.V. Hemelvaart", (Holidays.on(Date.civil(2007, 8, 15), [:be_nl], [:informal])[0] || {})[:name]
67
+
68
+ assert_equal "Allerheiligen", (Holidays.on(Date.civil(2007, 11, 1), [:be_nl], [:informal])[0] || {})[:name]
69
+
70
+ assert_equal "Wapenstilstand 1918", (Holidays.on(Date.civil(2007, 11, 11), [:be_nl], [:informal])[0] || {})[:name]
71
+
72
+ assert_equal "Kerstmis", (Holidays.on(Date.civil(2007, 12, 25), [:be_nl], [:informal])[0] || {})[:name]
73
+
74
+ assert_equal "Bundesfeiertag", (Holidays.on(Date.civil(2012, 8, 1), [:ch])[0] || {})[:name]
75
+
76
+ assert_equal "Weihnachten", (Holidays.on(Date.civil(2012, 12, 25), [:ch])[0] || {})[:name]
77
+
78
+ assert_equal "Auffahrt", (Holidays.on(Date.civil(2012, 5, 17), [:ch])[0] || {})[:name]
79
+
80
+ assert_equal "Bundesfeiertag", (Holidays.on(Date.civil(2012, 8, 1), [:ch_zh])[0] || {})[:name]
81
+
82
+ assert_equal "Weihnachten", (Holidays.on(Date.civil(2012, 12, 25), [:ch_zh])[0] || {})[:name]
83
+
84
+ assert_equal "Auffahrt", (Holidays.on(Date.civil(2012, 5, 17), [:ch_zh])[0] || {})[:name]
85
+
86
+ assert_equal "Tag der Arbeit", (Holidays.on(Date.civil(2012, 5, 1), [:ch_zh])[0] || {})[:name]
87
+
88
+ assert_equal "Stefanstag", (Holidays.on(Date.civil(2012, 12, 26), [:ch_zh])[0] || {})[:name]
89
+
90
+ assert_equal "Lundi du Jeûne fédéral", (Holidays.on(Date.civil(2012, 9, 17), [:ch_vd])[0] || {})[:name]
91
+
92
+ assert_equal "Lundi du Jeûne fédéral", (Holidays.on(Date.civil(2013, 9, 16), [:ch_vd])[0] || {})[:name]
93
+
94
+ assert_equal "Lundi du Jeûne fédéral", (Holidays.on(Date.civil(2014, 9, 22), [:ch_vd])[0] || {})[:name]
95
+
96
+ assert_equal "Jeûne genevois", (Holidays.on(Date.civil(2012, 9, 6), [:ch_ge])[0] || {})[:name]
97
+
98
+ assert_equal "Jeûne genevois", (Holidays.on(Date.civil(2013, 9, 5), [:ch_ge])[0] || {})[:name]
99
+
100
+ assert_equal "Jeûne genevois", (Holidays.on(Date.civil(2014, 9, 11), [:ch_ge])[0] || {})[:name]
101
+
102
+ assert_equal "Näfelser Fahrt", (Holidays.on(Date.civil(2012, 4, 12), [:ch_gl])[0] || {})[:name]
103
+
104
+ assert_equal "Näfelser Fahrt", (Holidays.on(Date.civil(2013, 4, 4), [:ch_gl])[0] || {})[:name]
105
+
106
+ assert_equal "Näfelser Fahrt", (Holidays.on(Date.civil(2014, 4, 3), [:ch_gl])[0] || {})[:name]
107
+
108
+ assert_equal "Den obnovy samostatného českého státu", (Holidays.on(Date.civil(2010, 1, 1), [:cz], [:informal])[0] || {})[:name]
109
+
110
+ assert_equal "Velký pátek", (Holidays.on(Date.civil(2016, 3, 25), [:cz], [:informal])[0] || {})[:name]
111
+
112
+ assert_equal "Velikonoční pondělí", (Holidays.on(Date.civil(2010, 4, 5), [:cz], [:informal])[0] || {})[:name]
113
+
114
+ assert_equal "Svátek práce", (Holidays.on(Date.civil(2010, 5, 1), [:cz], [:informal])[0] || {})[:name]
115
+
116
+ assert_equal "Den vítězství", (Holidays.on(Date.civil(2010, 5, 8), [:cz], [:informal])[0] || {})[:name]
117
+
118
+ assert_equal "Den slovanských věrozvěstů Cyrila a Metoděje", (Holidays.on(Date.civil(2010, 7, 5), [:cz], [:informal])[0] || {})[:name]
119
+
120
+ assert_equal "Den upálení mistra Jana Husa", (Holidays.on(Date.civil(2010, 7, 6), [:cz], [:informal])[0] || {})[:name]
121
+
122
+ assert_equal "Den české státnosti", (Holidays.on(Date.civil(2010, 9, 28), [:cz], [:informal])[0] || {})[:name]
123
+
124
+ assert_equal "Den vzniku samostatného československého státu", (Holidays.on(Date.civil(2010, 10, 28), [:cz], [:informal])[0] || {})[:name]
125
+
126
+ assert_equal "Den boje za svobodu a demokracii", (Holidays.on(Date.civil(2010, 11, 17), [:cz], [:informal])[0] || {})[:name]
127
+
128
+ assert_equal "Štědrý den", (Holidays.on(Date.civil(2010, 12, 24), [:cz], [:informal])[0] || {})[:name]
129
+
130
+ assert_equal "1. svátek vánoční", (Holidays.on(Date.civil(2010, 12, 25), [:cz], [:informal])[0] || {})[:name]
131
+
132
+ assert_equal "2. svátek vánoční", (Holidays.on(Date.civil(2010, 12, 26), [:cz], [:informal])[0] || {})[:name]
133
+
134
+ assert_equal "Nytårsdag", (Holidays.on(Date.civil(2007, 1, 1), [:dk], [:informal])[0] || {})[:name]
135
+
136
+ assert_equal "Fastelavn", (Holidays.on(Date.civil(2007, 2, 18), [:dk], [:informal])[0] || {})[:name]
137
+
138
+ assert_equal "2. påskedag", (Holidays.on(Date.civil(2007, 4, 9), [:dk], [:informal])[0] || {})[:name]
139
+
140
+ assert_equal "Dronningens fødselsdag", (Holidays.on(Date.civil(2007, 4, 16), [:dk], [:informal])[0] || {})[:name]
141
+
142
+ assert_equal "Skærtorsdag", (Holidays.on(Date.civil(2007, 4, 5), [:dk], [:informal])[0] || {})[:name]
143
+
144
+ assert_equal "Langfredag", (Holidays.on(Date.civil(2007, 4, 6), [:dk], [:informal])[0] || {})[:name]
145
+
146
+ assert_equal "Påskedag", (Holidays.on(Date.civil(2007, 4, 8), [:dk], [:informal])[0] || {})[:name]
147
+
148
+ assert_equal "Arbejdernes kampdag", (Holidays.on(Date.civil(2007, 5, 1), [:dk], [:informal])[0] || {})[:name]
149
+
150
+ assert_equal "Store Bededag", (Holidays.on(Date.civil(2007, 5, 4), [:dk], [:informal])[0] || {})[:name]
151
+
152
+ assert_equal "Kristi Himmelfartsdag", (Holidays.on(Date.civil(2007, 5, 17), [:dk], [:informal])[0] || {})[:name]
153
+
154
+ assert_equal "Pinsedag", (Holidays.on(Date.civil(2007, 5, 27), [:dk], [:informal])[0] || {})[:name]
155
+
156
+ assert_equal "2. Pinsedag", (Holidays.on(Date.civil(2007, 5, 28), [:dk], [:informal])[0] || {})[:name]
157
+
158
+ assert_equal "Grundlovsdag", (Holidays.on(Date.civil(2007, 6, 5), [:dk], [:informal])[0] || {})[:name]
159
+
160
+ assert_equal "Juleaftensdag", (Holidays.on(Date.civil(2007, 12, 24), [:dk], [:informal])[0] || {})[:name]
161
+
162
+ assert_equal "1. juledag", (Holidays.on(Date.civil(2007, 12, 25), [:dk], [:informal])[0] || {})[:name]
163
+
164
+ assert_equal "2. juledag", (Holidays.on(Date.civil(2007, 12, 26), [:dk], [:informal])[0] || {})[:name]
165
+
166
+ assert_equal "Neujahrstag", (Holidays.on(Date.civil(2009, 1, 1), [:de], [:informal])[0] || {})[:name]
167
+
168
+ assert_equal "Karfreitag", (Holidays.on(Date.civil(2009, 4, 10), [:de], [:informal])[0] || {})[:name]
169
+
170
+ assert_equal "Ostersonntag", (Holidays.on(Date.civil(2009, 4, 12), [:de], [:informal])[0] || {})[:name]
171
+
172
+ assert_equal "Ostermontag", (Holidays.on(Date.civil(2009, 4, 13), [:de], [:informal])[0] || {})[:name]
173
+
174
+ assert_equal "Tag der Arbeit", (Holidays.on(Date.civil(2009, 5, 1), [:de], [:informal])[0] || {})[:name]
175
+
176
+ assert_equal "Christi Himmelfahrt", (Holidays.on(Date.civil(2009, 5, 21), [:de], [:informal])[0] || {})[:name]
177
+
178
+ assert_equal "Pfingstsonntag", (Holidays.on(Date.civil(2009, 5, 31), [:de], [:informal])[0] || {})[:name]
179
+
180
+ assert_equal "Pfingstmontag", (Holidays.on(Date.civil(2009, 6, 1), [:de], [:informal])[0] || {})[:name]
181
+
182
+ assert_equal "Tag der Deutschen Einheit", (Holidays.on(Date.civil(2009, 10, 3), [:de], [:informal])[0] || {})[:name]
183
+
184
+ assert_equal "Heilig Abend", (Holidays.on(Date.civil(2009, 12, 24), [:de], [:informal])[0] || {})[:name]
185
+
186
+ assert_equal "1. Weihnachtstag", (Holidays.on(Date.civil(2009, 12, 25), [:de], [:informal])[0] || {})[:name]
187
+
188
+ assert_equal "2. Weihnachtstag", (Holidays.on(Date.civil(2009, 12, 26), [:de], [:informal])[0] || {})[:name]
189
+
190
+ assert_equal "Silvester", (Holidays.on(Date.civil(2009, 12, 31), [:de], [:informal])[0] || {})[:name]
191
+
192
+ assert_equal "Heilige Drei Könige", (Holidays.on(Date.civil(2009, 1, 6), [:de_bw, :de_by, :de_st, :de_])[0] || {})[:name]
193
+
194
+ assert_equal "Fronleichnam", (Holidays.on(Date.civil(2009, 6, 11), [:de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl, :de_sn_sorbian, :de_th_cath])[0] || {})[:name]
195
+
196
+ assert_equal "Mariä Himmelfahrt", (Holidays.on(Date.civil(2009, 8, 15), [:de_by, :de_sl, :de_])[0] || {})[:name]
197
+
198
+ assert_equal "Reformationstag", (Holidays.on(Date.civil(2009, 10, 31), [:de_bb, :de_mv, :de_sn, :de_st, :de_th, :de_])[0] || {})[:name]
199
+
200
+ assert_equal "Reformationstag", (Holidays.on(Date.civil(2009, 10, 31), [:de_bw], [:informal])[0] || {})[:name]
201
+
202
+ assert_equal "Reformationstag", (Holidays.on(Date.civil(2017, 10, 31), [:de])[0] || {})[:name]
203
+
204
+ assert_nil (Holidays.on(Date.civil(2016, 10, 31), [:de])[0] || {})[:name]
205
+
206
+ assert_nil (Holidays.on(Date.civil(2018, 10, 31), [:de])[0] || {})[:name]
207
+
208
+ assert_equal "Allerheiligen", (Holidays.on(Date.civil(2009, 11, 1), [:de_bw, :de_by, :de_nw, :de_rp, :de_sl, :de_])[0] || {})[:name]
209
+
210
+ assert_equal "Friedensfest", (Holidays.on(Date.civil(2015, 8, 8), [:de_by_augsburg])[0] || {})[:name]
211
+
212
+ assert_nil (Holidays.on(Date.civil(2015, 8, 8), [:de, :de_bw, :de_by, :de_bb, :de_he, :de_mv, :de_nw, :de_rp, :de_sl, :de_sn, :de_st, :de_th])[0] || {})[:name]
213
+
214
+ assert_nil (Holidays.on(Date.civil(2010, 5, 8), [:de])[0] || {})[:name]
215
+
216
+ assert_nil (Holidays.on(Date.civil(2010, 8, 8), [:de])[0] || {})[:name]
217
+
218
+ assert_equal "Buß- und Bettag", (Holidays.on(Date.civil(2004, 11, 17), [:de_sn])[0] || {})[:name]
219
+
220
+ assert_equal "Buß- und Bettag", (Holidays.on(Date.civil(2005, 11, 16), [:de_sn])[0] || {})[:name]
221
+
222
+ assert_equal "Buß- und Bettag", (Holidays.on(Date.civil(2006, 11, 22), [:de_sn])[0] || {})[:name]
223
+
224
+ assert_equal "Buß- und Bettag", (Holidays.on(Date.civil(2009, 11, 18), [:de_sn])[0] || {})[:name]
225
+
226
+ assert_equal "Weiberfastnacht", (Holidays.on(Date.civil(2016, 2, 4), [:de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl, :de_sn], [:informal])[0] || {})[:name]
227
+
228
+ assert_equal "Rosenmontag", (Holidays.on(Date.civil(2016, 2, 8), [:de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl, :de_sn], [:informal])[0] || {})[:name]
229
+
230
+ assert_equal "Aschermittwoch", (Holidays.on(Date.civil(2016, 2, 10), [:de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl, :de_sn], [:informal])[0] || {})[:name]
231
+
232
+ assert_equal "Πρωτοχρονιά", (Holidays.on(Date.civil(2011, 1, 1), [:el], [:informal])[0] || {})[:name]
233
+
234
+ assert_equal "Θεοφάνεια", (Holidays.on(Date.civil(2011, 1, 6), [:el], [:informal])[0] || {})[:name]
235
+
236
+ assert_equal "Μεγάλη Παρασκευή", (Holidays.on(Date.civil(2011, 4, 22), [:el], [:informal])[0] || {})[:name]
237
+
238
+ assert_equal "Μεγάλο Σάββατο", (Holidays.on(Date.civil(1970, 4, 25), [:el], [:informal])[0] || {})[:name]
239
+
240
+ assert_equal "Κυριακή του Πάσχα", (Holidays.on(Date.civil(1985, 4, 14), [:el], [:informal])[0] || {})[:name]
241
+
242
+ assert_equal "Κυριακή του Πάσχα", (Holidays.on(Date.civil(2011, 4, 24), [:el], [:informal])[0] || {})[:name]
243
+
244
+ assert_equal "Κυριακή του Πάσχα", (Holidays.on(Date.civil(2027, 5, 2), [:el], [:informal])[0] || {})[:name]
245
+
246
+ assert_equal "Δευτέρα του Πάσχα", (Holidays.on(Date.civil(2046, 4, 30), [:el], [:informal])[0] || {})[:name]
247
+
248
+ assert_equal "Πρωτομαγιά", (Holidays.on(Date.civil(2011, 5, 1), [:el], [:informal])[0] || {})[:name]
249
+
250
+ assert_equal "Αγίου Πνεύματος", (Holidays.on(Date.civil(2011, 6, 13), [:el], [:informal])[0] || {})[:name]
251
+
252
+ assert_equal "Αγίου Πνεύματος", (Holidays.on(Date.civil(2012, 6, 4), [:el], [:informal])[0] || {})[:name]
253
+
254
+ assert_equal "Καθαρά Δευτέρα", (Holidays.on(Date.civil(2011, 3, 7), [:el], [:informal])[0] || {})[:name]
255
+
256
+ assert_equal "Καθαρά Δευτέρα", (Holidays.on(Date.civil(2012, 2, 27), [:el], [:informal])[0] || {})[:name]
257
+
258
+ assert_equal "Χριστούγεννα", (Holidays.on(Date.civil(2011, 12, 25), [:el], [:informal])[0] || {})[:name]
259
+
260
+ assert_equal "Δεύτερη ημέρα των Χριστουγέννων", (Holidays.on(Date.civil(2011, 12, 26), [:el], [:informal])[0] || {})[:name]
261
+
262
+ assert_equal "Año Nuevo", (Holidays.on(Date.civil(2009, 1, 1), [:es], [:informal])[0] || {})[:name]
263
+
264
+ assert_equal "Día de Reyes", (Holidays.on(Date.civil(2009, 1, 6), [:es], [:informal])[0] || {})[:name]
265
+
266
+ assert_equal "Viernes Santo", (Holidays.on(Date.civil(2009, 4, 10), [:es], [:informal])[0] || {})[:name]
267
+
268
+ assert_equal "Día del Trabajador", (Holidays.on(Date.civil(2009, 5, 1), [:es], [:informal])[0] || {})[:name]
269
+
270
+ assert_equal "Asunción", (Holidays.on(Date.civil(2009, 8, 15), [:es], [:informal])[0] || {})[:name]
271
+
272
+ assert_equal "Día de la Hispanidad", (Holidays.on(Date.civil(2009, 10, 12), [:es], [:informal])[0] || {})[:name]
273
+
274
+ assert_equal "Todos los Santos", (Holidays.on(Date.civil(2009, 11, 1), [:es], [:informal])[0] || {})[:name]
275
+
276
+ assert_equal "Día de la Constitución", (Holidays.on(Date.civil(2009, 12, 6), [:es], [:informal])[0] || {})[:name]
277
+
278
+ assert_equal "Inmaculada Concepción", (Holidays.on(Date.civil(2009, 12, 8), [:es], [:informal])[0] || {})[:name]
279
+
280
+ assert_equal "Navidad del Señor", (Holidays.on(Date.civil(2009, 12, 25), [:es], [:informal])[0] || {})[:name]
281
+
282
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_pv], [:informal])[0] || {})[:name]
283
+
284
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_na], [:informal])[0] || {})[:name]
285
+
286
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_an], [:informal])[0] || {})[:name]
287
+
288
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_ib], [:informal])[0] || {})[:name]
289
+
290
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_cm], [:informal])[0] || {})[:name]
291
+
292
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_mu], [:informal])[0] || {})[:name]
293
+
294
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_m], [:informal])[0] || {})[:name]
295
+
296
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_ar], [:informal])[0] || {})[:name]
297
+
298
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_cl], [:informal])[0] || {})[:name]
299
+
300
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_cn], [:informal])[0] || {})[:name]
301
+
302
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_lo], [:informal])[0] || {})[:name]
303
+
304
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_ga], [:informal])[0] || {})[:name]
305
+
306
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_ce], [:informal])[0] || {})[:name]
307
+
308
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_o], [:informal])[0] || {})[:name]
309
+
310
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_ex], [:informal])[0] || {})[:name]
311
+
312
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_], [:informal])[0] || {})[:name]
313
+
314
+ assert_equal "Lunes de Pascua", (Holidays.on(Date.civil(2009, 4, 13), [:es_pv])[0] || {})[:name]
315
+
316
+ assert_equal "Lunes de Pascua", (Holidays.on(Date.civil(2009, 4, 13), [:es_ct])[0] || {})[:name]
317
+
318
+ assert_equal "Lunes de Pascua", (Holidays.on(Date.civil(2009, 4, 13), [:es_na])[0] || {})[:name]
319
+
320
+ assert_equal "Lunes de Pascua", (Holidays.on(Date.civil(2009, 4, 13), [:es_v])[0] || {})[:name]
321
+
322
+ assert_equal "Lunes de Pascua", (Holidays.on(Date.civil(2009, 4, 13), [:es_vc])[0] || {})[:name]
323
+
324
+ assert_equal "Lunes de Pascua", (Holidays.on(Date.civil(2009, 4, 13), [:es_])[0] || {})[:name]
325
+
326
+ assert_equal "Jueves Santo", (Holidays.on(Date.civil(2009, 4, 9), [:es_an])[0] || {})[:name]
327
+
328
+ assert_equal "San José", (Holidays.on(Date.civil(2009, 3, 19), [:es_v])[0] || {})[:name]
329
+
330
+ assert_equal "San José", (Holidays.on(Date.civil(2009, 3, 19), [:es_vc])[0] || {})[:name]
331
+
332
+ assert_equal "San José", (Holidays.on(Date.civil(2009, 3, 19), [:es_cm])[0] || {})[:name]
333
+
334
+ assert_equal "San José", (Holidays.on(Date.civil(2009, 3, 19), [:es_mu])[0] || {})[:name]
335
+
336
+ assert_equal "San José", (Holidays.on(Date.civil(2009, 3, 19), [:es_m])[0] || {})[:name]
337
+
338
+ assert_equal "San José", (Holidays.on(Date.civil(2009, 3, 19), [:es_])[0] || {})[:name]
339
+
340
+ assert_equal "Día de Castilla y León", (Holidays.on(Date.civil(2009, 4, 23), [:es_cl])[0] || {})[:name]
341
+
342
+ assert_equal "San Jorge, Día de Aragón", (Holidays.on(Date.civil(2009, 4, 23), [:es_ar])[0] || {})[:name]
343
+
344
+ assert_equal "Día de Castilla y León", (Holidays.on(Date.civil(2009, 4, 23), [:es_])[0] || {})[:name]
345
+
346
+ assert_equal "Día de Valencia", (Holidays.on(Date.civil(2009, 10, 9), [:es_vc])[0] || {})[:name]
347
+
348
+ assert_equal "Día de Valencia", (Holidays.on(Date.civil(2009, 10, 9), [:es_v])[0] || {})[:name]
349
+
350
+ assert_equal "Día de Valencia", (Holidays.on(Date.civil(2009, 10, 9), [:es_])[0] || {})[:name]
351
+
352
+ assert_equal "San Esteban", (Holidays.on(Date.civil(2009, 12, 26), [:es_ib])[0] || {})[:name]
353
+
354
+ assert_equal "San Esteban", (Holidays.on(Date.civil(2009, 12, 26), [:es_ct])[0] || {})[:name]
355
+
356
+ assert_equal "San Esteban", (Holidays.on(Date.civil(2009, 12, 26), [:es_])[0] || {})[:name]
357
+
358
+ assert_equal "Año Nuevo", (Holidays.on(Date.civil(2012, 1, 1), [:es])[0] || {})[:name]
359
+
360
+ assert_equal "Año Nuevo", (Holidays.on(Date.civil(2012, 1, 2), [:es], [:observed])[0] || {})[:name]
361
+
362
+ assert_equal "Día de Andalucía", (Holidays.on(Date.civil(2009, 2, 28), [:es_an])[0] || {})[:name]
363
+
364
+ assert_equal "Día de las Islas Baleares", (Holidays.on(Date.civil(2009, 3, 1), [:es_ib])[0] || {})[:name]
365
+
366
+ assert_equal "Fiesta de la Comunidad", (Holidays.on(Date.civil(2006, 5, 2), [:es_m])[0] || {})[:name]
367
+
368
+ assert_equal "Día de las Canarias", (Holidays.on(Date.civil(2006, 5, 30), [:es_cn])[0] || {})[:name]
369
+
370
+ assert_equal "Día de la Región Castilla-La Mancha", (Holidays.on(Date.civil(2009, 5, 31), [:es_cm])[0] || {})[:name]
371
+
372
+ assert_equal "Día de la Región de Murcia", (Holidays.on(Date.civil(2009, 6, 9), [:es_mu])[0] || {})[:name]
373
+
374
+ assert_equal "Día de La Rioja", (Holidays.on(Date.civil(2009, 6, 9), [:es_lo])[0] || {})[:name]
375
+
376
+ assert_equal "Santiago Apostol", (Holidays.on(Date.civil(2009, 7, 23), [:es_ga])[0] || {})[:name]
377
+
378
+ assert_equal "Día de Ceuta", (Holidays.on(Date.civil(2009, 9, 2), [:es_ce])[0] || {})[:name]
379
+
380
+ assert_equal "Día de Asturias", (Holidays.on(Date.civil(2009, 9, 8), [:es_o])[0] || {})[:name]
381
+
382
+ assert_equal "Día de Extremadura", (Holidays.on(Date.civil(2009, 9, 8), [:es_ex])[0] || {})[:name]
383
+
384
+ assert_equal "Fiesta Nacional de Cataluña", (Holidays.on(Date.civil(2009, 9, 11), [:es_ct])[0] || {})[:name]
385
+
386
+ assert_equal "Jour de l'an", (Holidays.on(Date.civil(2007, 1, 1), [:fr])[0] || {})[:name]
387
+
388
+ assert_equal "Lundi de Pâques", (Holidays.on(Date.civil(2007, 4, 9), [:fr])[0] || {})[:name]
389
+
390
+ assert_equal "Fête du travail", (Holidays.on(Date.civil(2007, 5, 1), [:fr])[0] || {})[:name]
391
+
392
+ assert_equal "Victoire 1945", (Holidays.on(Date.civil(2007, 5, 8), [:fr])[0] || {})[:name]
393
+
394
+ assert_equal "Ascension", (Holidays.on(Date.civil(2007, 5, 17), [:fr])[0] || {})[:name]
395
+
396
+ assert_equal "Lundi de Pentecôte", (Holidays.on(Date.civil(2007, 5, 28), [:fr])[0] || {})[:name]
397
+
398
+ assert_equal "Fête nationale", (Holidays.on(Date.civil(2007, 7, 14), [:fr])[0] || {})[:name]
399
+
400
+ assert_equal "Assomption", (Holidays.on(Date.civil(2007, 8, 15), [:fr])[0] || {})[:name]
401
+
402
+ assert_equal "Toussaint", (Holidays.on(Date.civil(2007, 11, 1), [:fr])[0] || {})[:name]
403
+
404
+ assert_equal "Armistice 1918", (Holidays.on(Date.civil(2007, 11, 11), [:fr])[0] || {})[:name]
405
+
406
+ assert_equal "Noël", (Holidays.on(Date.civil(2007, 12, 25), [:fr])[0] || {})[:name]
407
+
408
+ assert_nil (Holidays.on(Date.civil(2007, 4, 8), [:fr])[0] || {})[:name]
409
+
410
+ assert_nil (Holidays.on(Date.civil(2007, 5, 27), [:fr])[0] || {})[:name]
411
+
412
+ assert_equal "Pâques", (Holidays.on(Date.civil(2007, 4, 8), [:fr], [:informal])[0] || {})[:name]
413
+
414
+ assert_equal "Pentecôte", (Holidays.on(Date.civil(2007, 5, 27), [:fr], [:informal])[0] || {})[:name]
415
+
416
+ assert_equal "Saint-Étienne", (Holidays.on(Date.civil(2017, 12, 26), [:fr_a, :fr_m], [:informal])[0] || {})[:name]
417
+
418
+ assert_equal "Good Friday", (Holidays.on(Date.civil(2008, 3, 21), [:gb], [:informal])[0] || {})[:name]
419
+
420
+ assert_equal "Easter Sunday", (Holidays.on(Date.civil(2008, 3, 23), [:gb], [:informal])[0] || {})[:name]
421
+
422
+ assert_equal "May Day", (Holidays.on(Date.civil(2008, 5, 5), [:gb], [:informal])[0] || {})[:name]
423
+
424
+ assert_equal "Bank Holiday", (Holidays.on(Date.civil(2008, 5, 26), [:gb], [:informal])[0] || {})[:name]
425
+
426
+ assert_equal "Guy Fawkes Day", (Holidays.on(Date.civil(2008, 11, 5), [:gb], [:informal])[0] || {})[:name]
427
+
428
+ assert_equal "Christmas Day", (Holidays.on(Date.civil(2008, 12, 25), [:gb], [:informal])[0] || {})[:name]
429
+
430
+ assert_equal "Boxing Day", (Holidays.on(Date.civil(2008, 12, 26), [:gb], [:informal])[0] || {})[:name]
431
+
432
+ assert_equal "St. Patrick's Day", (Holidays.on(Date.civil(2008, 3, 17), [:gb_nir], [:informal])[0] || {})[:name]
433
+
434
+ assert_equal "St. Andrew's Day", (Holidays.on(Date.civil(2006, 11, 30), [:gb_sct], [:informal])[0] || {})[:name]
435
+
436
+ assert_equal "St. Andrew's Day", (Holidays.on(Date.civil(2006, 11, 30), [:gb_sct], [:informal, :observed])[0] || {})[:name]
437
+
438
+ assert_equal "St. Andrew's Day", (Holidays.on(Date.civil(2002, 12, 2), [:gb_sct], [:informal, :observed])[0] || {})[:name]
439
+
440
+ assert_nil (Holidays.on(Date.civil(2004, 11, 30), [:gb_sct])[0] || {})[:name]
441
+
442
+ assert_nil (Holidays.on(Date.civil(2005, 11, 30), [:gb_sct])[0] || {})[:name]
443
+
444
+ assert_nil (Holidays.on(Date.civil(2006, 11, 30), [:gb_sct])[0] || {})[:name]
445
+
446
+ assert_equal "St. Andrew's Day", (Holidays.on(Date.civil(2007, 11, 30), [:gb_sct])[0] || {})[:name]
447
+
448
+ assert_equal "St. Andrew's Day", (Holidays.on(Date.civil(2007, 11, 30), [:gb_sct], [:informal])[0] || {})[:name]
449
+
450
+ assert_equal "St. Andrew's Day", (Holidays.on(Date.civil(2007, 11, 30), [:gb_sct], [:informal, :observed])[0] || {})[:name]
451
+
452
+ assert_equal "St. Andrew's Day", (Holidays.on(Date.civil(2016, 11, 30), [:gb_sct])[0] || {})[:name]
453
+
454
+ assert_equal "St. Andrew's Day", (Holidays.on(Date.civil(2019, 11, 30), [:gb_sct])[0] || {})[:name]
455
+
456
+ assert_equal "St. Andrew's Day", (Holidays.on(Date.civil(2019, 11, 30), [:gb_sct])[0] || {})[:name]
457
+
458
+ assert_equal "St. Andrew's Day", (Holidays.on(Date.civil(2019, 12, 2), [:gb_sct], [:observed])[0] || {})[:name]
459
+
460
+ assert_equal "Christmas Day", (Holidays.on(Date.civil(2008, 12, 25), [:gb_], [:observed])[0] || {})[:name]
461
+
462
+ assert_equal "Christmas Day", (Holidays.on(Date.civil(2009, 12, 25), [:gb_], [:observed])[0] || {})[:name]
463
+
464
+ assert_equal "Christmas Day", (Holidays.on(Date.civil(2010, 12, 27), [:gb_], [:observed])[0] || {})[:name]
465
+
466
+ assert_equal "Boxing Day", (Holidays.on(Date.civil(2008, 12, 26), [:gb_], [:observed])[0] || {})[:name]
467
+
468
+ assert_equal "Boxing Day", (Holidays.on(Date.civil(2009, 12, 28), [:gb_], [:observed])[0] || {})[:name]
469
+
470
+ assert_equal "Boxing Day", (Holidays.on(Date.civil(2010, 12, 28), [:gb_], [:observed])[0] || {})[:name]
471
+
472
+ assert_equal "Boxing Day", (Holidays.on(Date.civil(2011, 12, 27), [:gb_], [:observed])[0] || {})[:name]
473
+
474
+ assert_equal "New Year's Day", (Holidays.on(Date.civil(2010, 1, 1), [:gb], [:observed])[0] || {})[:name]
475
+
476
+ assert_equal "New Year's Day", (Holidays.on(Date.civil(2011, 1, 3), [:gb], [:observed])[0] || {})[:name]
477
+
478
+ assert_equal "New Year's Day", (Holidays.on(Date.civil(2012, 1, 2), [:gb], [:observed])[0] || {})[:name]
479
+
480
+ assert_equal "2nd January", (Holidays.on(Date.civil(2010, 1, 4), [:gb_sct], [:observed])[0] || {})[:name]
481
+
482
+ assert_equal "2nd January", (Holidays.on(Date.civil(2011, 1, 4), [:gb_sct], [:observed])[0] || {})[:name]
483
+
484
+ assert_equal "2nd January", (Holidays.on(Date.civil(2012, 1, 3), [:gb_sct], [:observed])[0] || {})[:name]
485
+
486
+ assert_equal "2nd January", (Holidays.on(Date.civil(2013, 1, 2), [:gb_sct], [:observed])[0] || {})[:name]
487
+
488
+ assert_equal "2nd January", (Holidays.on(Date.civil(2014, 1, 2), [:gb_sct], [:observed])[0] || {})[:name]
489
+
490
+ assert_equal "Easter Monday", (Holidays.on(Date.civil(2008, 3, 24), [:gb_wls])[0] || {})[:name]
491
+
492
+ assert_equal "Bank Holiday", (Holidays.on(Date.civil(2008, 8, 25), [:gb_wls])[0] || {})[:name]
493
+
494
+ assert_equal "Easter Monday", (Holidays.on(Date.civil(2008, 3, 24), [:gb_eng])[0] || {})[:name]
495
+
496
+ assert_equal "Bank Holiday", (Holidays.on(Date.civil(2008, 8, 25), [:gb_eng])[0] || {})[:name]
497
+
498
+ assert_equal "Easter Monday", (Holidays.on(Date.civil(2008, 3, 24), [:gb_nir])[0] || {})[:name]
499
+
500
+ assert_equal "Bank Holiday", (Holidays.on(Date.civil(2008, 8, 25), [:gb_nir])[0] || {})[:name]
501
+
502
+ assert_equal "Easter Monday", (Holidays.on(Date.civil(2008, 3, 24), [:gb_eaw])[0] || {})[:name]
503
+
504
+ assert_equal "Bank Holiday", (Holidays.on(Date.civil(2008, 8, 25), [:gb_eaw])[0] || {})[:name]
505
+
506
+ assert_equal "Easter Monday", (Holidays.on(Date.civil(2008, 3, 24), [:gb_])[0] || {})[:name]
507
+
508
+ assert_equal "Bank Holiday", (Holidays.on(Date.civil(2008, 8, 25), [:gb_])[0] || {})[:name]
509
+
510
+ assert_equal "Nova godina", (Holidays.on(Date.civil(2012, 1, 1), [:hr], [:informal])[0] || {})[:name]
511
+
512
+ assert_equal "Sveta tri kralja", (Holidays.on(Date.civil(2012, 1, 6), [:hr], [:informal])[0] || {})[:name]
513
+
514
+ assert_equal "Međunarodni praznik rada", (Holidays.on(Date.civil(2012, 5, 1), [:hr], [:informal])[0] || {})[:name]
515
+
516
+ assert_equal "Dan antifašističke borbe", (Holidays.on(Date.civil(2012, 6, 22), [:hr], [:informal])[0] || {})[:name]
517
+
518
+ assert_equal "Dan državnosti", (Holidays.on(Date.civil(2012, 6, 25), [:hr], [:informal])[0] || {})[:name]
519
+
520
+ assert_equal "Dan pobjede i domovinske zahvalnosti i dan hrvatskih branitelja", (Holidays.on(Date.civil(2012, 8, 5), [:hr], [:informal])[0] || {})[:name]
521
+
522
+ assert_equal "Velika Gospa", (Holidays.on(Date.civil(2012, 8, 15), [:hr], [:informal])[0] || {})[:name]
523
+
524
+ assert_equal "Dan neovisnosti", (Holidays.on(Date.civil(2012, 10, 8), [:hr], [:informal])[0] || {})[:name]
525
+
526
+ assert_equal "Dan svih svetih", (Holidays.on(Date.civil(2012, 11, 1), [:hr], [:informal])[0] || {})[:name]
527
+
528
+ assert_equal "Božić", (Holidays.on(Date.civil(2012, 12, 25), [:hr], [:informal])[0] || {})[:name]
529
+
530
+ assert_equal "Sveti Stjepan", (Holidays.on(Date.civil(2012, 12, 26), [:hr], [:informal])[0] || {})[:name]
531
+
532
+ assert_equal "Tijelovo", (Holidays.on(Date.civil(2008, 5, 22), [:hr])[0] || {})[:name]
533
+
534
+ assert_equal "Tijelovo", (Holidays.on(Date.civil(2009, 6, 11), [:hr])[0] || {})[:name]
535
+
536
+ assert_equal "Tijelovo", (Holidays.on(Date.civil(2010, 6, 3), [:hr])[0] || {})[:name]
537
+
538
+ assert_equal "Tijelovo", (Holidays.on(Date.civil(2012, 6, 7), [:hr])[0] || {})[:name]
539
+
540
+ assert_equal "Tijelovo", (Holidays.on(Date.civil(2013, 5, 30), [:hr])[0] || {})[:name]
541
+
542
+ assert_equal "Tijelovo", (Holidays.on(Date.civil(2014, 6, 19), [:hr])[0] || {})[:name]
543
+
544
+ assert_equal "Újév", (Holidays.on(Date.civil(2012, 1, 1), [:hu], [:informal])[0] || {})[:name]
545
+
546
+ assert_equal "Újév", (Holidays.on(Date.civil(2011, 1, 1), [:hu], [:informal])[0] || {})[:name]
547
+
548
+ assert_equal "1848/49-es forradalom és szabadságharc ünnepe", (Holidays.on(Date.civil(2012, 3, 15), [:hu], [:informal])[0] || {})[:name]
549
+
550
+ assert_equal "Húsvét hétfő", (Holidays.on(Date.civil(2011, 4, 25), [:hu], [:informal])[0] || {})[:name]
551
+
552
+ assert_equal "Húsvét hétfő", (Holidays.on(Date.civil(2012, 4, 9), [:hu], [:informal])[0] || {})[:name]
553
+
554
+ assert_equal "A munka ünnepe", (Holidays.on(Date.civil(2012, 5, 1), [:hu], [:informal])[0] || {})[:name]
555
+
556
+ assert_equal "Pünkösd hétfő", (Holidays.on(Date.civil(2011, 6, 13), [:hu], [:informal])[0] || {})[:name]
557
+
558
+ assert_equal "Pünkösd hétfő", (Holidays.on(Date.civil(2012, 5, 28), [:hu], [:informal])[0] || {})[:name]
559
+
560
+ assert_equal "Az államalapítás ünnepe", (Holidays.on(Date.civil(2012, 8, 20), [:hu], [:informal])[0] || {})[:name]
561
+
562
+ assert_equal "1956-os forradalom és szabadságharc ünnepe", (Holidays.on(Date.civil(2012, 10, 23), [:hu], [:informal])[0] || {})[:name]
563
+
564
+ assert_equal "Mindenszentek", (Holidays.on(Date.civil(2012, 11, 1), [:hu], [:informal])[0] || {})[:name]
565
+
566
+ assert_equal "Karácsony", (Holidays.on(Date.civil(2012, 12, 25), [:hu], [:informal])[0] || {})[:name]
567
+
568
+ assert_equal "Karácsony", (Holidays.on(Date.civil(2012, 12, 26), [:hu], [:informal])[0] || {})[:name]
569
+
570
+ assert_nil (Holidays.on(Date.civil(2012, 3, 14), [:hu])[0] || {})[:name]
571
+
572
+ assert_equal "New Year's Day", (Holidays.on(Date.civil(2008, 1, 1), [:ie])[0] || {})[:name]
573
+
574
+ assert_equal "St. Patrick's Day", (Holidays.on(Date.civil(2008, 3, 17), [:ie])[0] || {})[:name]
575
+
576
+ assert_equal "Easter Monday", (Holidays.on(Date.civil(2008, 3, 24), [:ie])[0] || {})[:name]
577
+
578
+ assert_equal "May Day", (Holidays.on(Date.civil(2008, 5, 5), [:ie])[0] || {})[:name]
579
+
580
+ assert_equal "June Bank Holiday", (Holidays.on(Date.civil(2008, 6, 2), [:ie])[0] || {})[:name]
581
+
582
+ assert_equal "August Bank Holiday", (Holidays.on(Date.civil(2008, 8, 4), [:ie])[0] || {})[:name]
583
+
584
+ assert_equal "October Bank Holiday", (Holidays.on(Date.civil(2008, 10, 27), [:ie])[0] || {})[:name]
585
+
586
+ assert_equal "Christmas Day", (Holidays.on(Date.civil(2008, 12, 25), [:ie])[0] || {})[:name]
587
+
588
+ assert_equal "St. Stephen's Day", (Holidays.on(Date.civil(2008, 12, 26), [:ie])[0] || {})[:name]
589
+
590
+ assert_equal "New Year's Day", (Holidays.on(Date.civil(2012, 1, 2), [:ie], [:observed])[0] || {})[:name]
591
+
592
+ assert_equal "St. Patrick's Day", (Holidays.on(Date.civil(2012, 3, 19), [:ie], [:observed])[0] || {})[:name]
593
+
594
+ assert_equal "Easter Monday", (Holidays.on(Date.civil(2012, 4, 9), [:ie], [:observed])[0] || {})[:name]
595
+
596
+ assert_equal "May Day", (Holidays.on(Date.civil(2012, 5, 7), [:ie], [:observed])[0] || {})[:name]
597
+
598
+ assert_equal "June Bank Holiday", (Holidays.on(Date.civil(2012, 6, 4), [:ie], [:observed])[0] || {})[:name]
599
+
600
+ assert_equal "August Bank Holiday", (Holidays.on(Date.civil(2012, 8, 6), [:ie], [:observed])[0] || {})[:name]
601
+
602
+ assert_equal "October Bank Holiday", (Holidays.on(Date.civil(2012, 10, 29), [:ie], [:observed])[0] || {})[:name]
603
+
604
+ assert_equal "Christmas Day", (Holidays.on(Date.civil(2011, 12, 26), [:ie], [:observed])[0] || {})[:name]
605
+
606
+ assert_equal "St. Stephen's Day", (Holidays.on(Date.civil(2011, 12, 27), [:ie], [:observed])[0] || {})[:name]
607
+
608
+ assert_equal "Christmas Day", (Holidays.on(Date.civil(2012, 12, 25), [:ie], [:observed])[0] || {})[:name]
609
+
610
+ assert_equal "St. Stephen's Day", (Holidays.on(Date.civil(2012, 12, 26), [:ie], [:observed])[0] || {})[:name]
611
+
612
+ assert_equal "St. Stephen's Day", (Holidays.on(Date.civil(2015, 12, 28), [:ie], [:observed])[0] || {})[:name]
613
+
614
+ assert_equal "Nýársdagur", (Holidays.on(Date.civil(2007, 1, 1), [:is], [:informal])[0] || {})[:name]
615
+
616
+ assert_equal "Þrettándinn", (Holidays.on(Date.civil(2007, 1, 6), [:is], [:informal])[0] || {})[:name]
617
+
618
+ assert_equal "Bóndadagur", (Holidays.on(Date.civil(2007, 1, 19), [:is], [:informal])[0] || {})[:name]
619
+
620
+ assert_equal "Konudagur", (Holidays.on(Date.civil(2007, 2, 18), [:is], [:informal])[0] || {})[:name]
621
+
622
+ assert_equal "Skírdagur", (Holidays.on(Date.civil(2007, 4, 5), [:is], [:informal])[0] || {})[:name]
623
+
624
+ assert_equal "Föstudaginn langi", (Holidays.on(Date.civil(2007, 4, 6), [:is], [:informal])[0] || {})[:name]
625
+
626
+ assert_equal "Páskadagur", (Holidays.on(Date.civil(2007, 4, 8), [:is], [:informal])[0] || {})[:name]
20
627
 
21
- assert_equal [], Holidays.on(Date.civil(2010,5,8), :at), '2010-05-08 is not a holiday in Austria'
22
-
23
-
24
- {Date.civil(2007,1,1) => 'Jour de l\'an',
25
- Date.civil(2007,4,8) => 'Pâques',
26
- Date.civil(2007,4,9) => 'Lundi de Pâques',
27
- Date.civil(2007,5,1) => 'Fête du travail',
28
- Date.civil(2007,5,17) => 'Ascension',
29
- Date.civil(2007,5,27) => 'Pentecôte',
30
- Date.civil(2007,5,28) => 'Lundi de Pentecôte',
31
- Date.civil(2007,7,21) => 'Fête nationale',
32
- Date.civil(2007,8,15) => 'Assomption',
33
- Date.civil(2007,11,1) => 'Toussaint',
34
- Date.civil(2007,11,11) => 'Armistice 1918',
35
- Date.civil(2007,12,25) => 'Noël'}.each do |date, name|
36
- assert_equal name, (Holidays.on(date, :be_fr, :informal)[0] || {})[:name]
37
- end
628
+ assert_equal "Annar í páskum", (Holidays.on(Date.civil(2007, 4, 9), [:is], [:informal])[0] || {})[:name]
38
629
 
630
+ assert_equal "Sumardagurinn fyrsti", (Holidays.on(Date.civil(2007, 4, 19), [:is], [:informal])[0] || {})[:name]
39
631
 
40
- {Date.civil(2007,1,1) => 'Nieuwjaar',
41
- Date.civil(2007,4,8) => 'Pasen',
42
- Date.civil(2007,4,9) => 'Paasmaandag',
43
- Date.civil(2007,5,1) => 'Feest van de Arbeid',
44
- Date.civil(2007,5,17) => 'O.H. Hemelvaart',
45
- Date.civil(2007,5,27) => 'Pinksteren',
46
- Date.civil(2007,5,28) => 'Pinkstermaandag',
47
- Date.civil(2007,7,21) => 'Nationale Feestdag',
48
- Date.civil(2007,8,15) => 'O.L.V. Hemelvaart',
49
- Date.civil(2007,11,1) => 'Allerheiligen',
50
- Date.civil(2007,11,11) => 'Wapenstilstand 1918',
51
- Date.civil(2007,12,25) => 'Kerstmis'}.each do |date, name|
52
- assert_equal name, (Holidays.on(date, :be_nl, :informal)[0] || {})[:name]
53
- end
632
+ assert_equal "Verkalýðsdagurinn", (Holidays.on(Date.civil(2007, 5, 1), [:is], [:informal])[0] || {})[:name]
54
633
 
634
+ assert_equal "Uppstigningardagur", (Holidays.on(Date.civil(2007, 5, 17), [:is], [:informal])[0] || {})[:name]
55
635
 
56
- { Date.civil(2012,8,1) => 'Bundesfeiertag',
57
- Date.civil(2012,12,25) => 'Weihnachten',
58
- Date.civil(2012,05,17) => 'Auffahrt'
59
- }.each do |date, name|
60
- assert_equal name, (Holidays.on(date, :ch)[0] || {})[:name]
61
- end
636
+ assert_equal "Hvítasunnudagur", (Holidays.on(Date.civil(2007, 5, 27), [:is], [:informal])[0] || {})[:name]
62
637
 
63
- { Date.civil(2012,8,1) => 'Bundesfeiertag',
64
- Date.civil(2012,12,25) => 'Weihnachten',
65
- Date.civil(2012,05,17) => 'Auffahrt',
66
- Date.civil(2012,5,1) => 'Tag der Arbeit',
67
- Date.civil(2012,12,26) => 'Stefanstag'
68
- }.each do |date, name|
69
- assert_equal name, (Holidays.on(date, :ch_zh)[0] || {})[:name]
70
- end
638
+ assert_equal "Annar í hvítasunnu", (Holidays.on(Date.civil(2007, 5, 28), [:is], [:informal])[0] || {})[:name]
71
639
 
72
- [Date.civil(2012,9,17), Date.civil(2013,9,16), Date.civil(2014,9,22)].each do |date|
73
- assert_equal 'Lundi du Jeûne fédéral', (Holidays.on(date, :ch_vd)[0] || {})[:name]
74
- end
640
+ assert_equal "Sjómannadagurinn", (Holidays.on(Date.civil(2007, 6, 3), [:is], [:informal])[0] || {})[:name]
75
641
 
76
- [Date.civil(2012,9,6), Date.civil(2013,9,5), Date.civil(2014,9,11)].each do |date|
77
- assert_equal 'Jeûne genevois', (Holidays.on(date, :ch_ge)[0] || {})[:name]
78
- end
642
+ assert_equal "Lýðveldisdagurinn", (Holidays.on(Date.civil(2007, 6, 17), [:is], [:informal])[0] || {})[:name]
79
643
 
80
- [Date.civil(2012,4,12), Date.civil(2013,4,4), Date.civil(2014,4,3)].each do |date|
81
- assert_equal 'Näfelser Fahrt', (Holidays.on(date, :ch_gl)[0] || {})[:name]
82
- end
644
+ assert_equal "Frídagur verslunarmanna", (Holidays.on(Date.civil(2007, 8, 6), [:is], [:informal])[0] || {})[:name]
83
645
 
646
+ assert_equal "Jól", (Holidays.on(Date.civil(2007, 12, 24), [:is], [:informal])[0] || {})[:name]
84
647
 
85
- {Date.civil(2010,1,1) => 'Den obnovy samostatného českého státu',
86
- Date.civil(2016,3,25) => 'Velký pátek',
87
- Date.civil(2010,4,5) => 'Velikonoční pondělí',
88
- Date.civil(2010,5,1) => 'Svátek práce',
89
- Date.civil(2010,5,8) => 'Den vítězství',
90
- Date.civil(2010,7,5) => 'Den slovanských věrozvěstů Cyrila a Metoděje',
91
- Date.civil(2010,7,6) => 'Den upálení mistra Jana Husa',
92
- Date.civil(2010,9,28) => 'Den české státnosti',
93
- Date.civil(2010,10,28) => 'Den vzniku samostatného československého státu',
94
- Date.civil(2010,11,17) => 'Den boje za svobodu a demokracii',
95
- Date.civil(2010,12,24) => 'Štědrý den',
96
- Date.civil(2010,12,25) => '1. svátek vánoční',
97
- Date.civil(2010,12,26) => '2. svátek vánoční'}.each do |date, name|
98
- assert_equal name, (Holidays.on(date, :cz, :informal)[0] || {})[:name]
99
- end
648
+ assert_equal "Jól", (Holidays.on(Date.civil(2007, 12, 25), [:is], [:informal])[0] || {})[:name]
100
649
 
650
+ assert_equal "Jól", (Holidays.on(Date.civil(2007, 12, 26), [:is], [:informal])[0] || {})[:name]
101
651
 
102
- {Date.civil(2007,1,1) => 'Nytårsdag',
103
- Date.civil(2007,2,18) => 'Fastelavn',
104
- Date.civil(2007,4,9) => 'Danmarks besættelse',
105
- Date.civil(2007,4,16) => 'Dronningens fødselsdag',
106
- Date.civil(2007,4,5) => 'Skærtorsdag',
107
- Date.civil(2007,4,6) => 'Langfredag',
108
- Date.civil(2007,4,8) => 'Påskedag',
109
- Date.civil(2007,4,9) => '2. påskedag',
110
- Date.civil(2007,5,1) => 'Arbejdernes kampdag',
111
- Date.civil(2007,5,4) => 'Store Bededag',
112
- Date.civil(2007,5,17) => 'Kristi Himmelfartsdag',
113
- Date.civil(2007,5,27) => 'Pinsedag',
114
- Date.civil(2007,5,28) => '2. Pinsedag',
115
- Date.civil(2007,6,5) => 'Grundlovsdag',
116
- Date.civil(2007,12,24) => 'Juleaftensdag',
117
- Date.civil(2007,12,25) => '1. juledag',
118
- Date.civil(2007,12,26) => '2. juledag'}.each do |date, name|
119
- assert_equal name, (Holidays.on(date, :dk, :informal)[0] || {})[:name]
120
- end
652
+ assert_equal "Gamlárskvöld", (Holidays.on(Date.civil(2007, 12, 31), [:is], [:informal])[0] || {})[:name]
121
653
 
654
+ assert_equal "Capodanno", (Holidays.on(Date.civil(2007, 1, 1), [:it], [:informal])[0] || {})[:name]
122
655
 
123
- { Date.civil(2009, 1, 1) => 'Neujahrstag',
124
- Date.civil(2009, 4, 10) => 'Karfreitag',
125
- Date.civil(2009, 4, 12) => 'Ostersonntag',
126
- Date.civil(2009, 4, 13) => 'Ostermontag',
127
- Date.civil(2009, 5, 1) => 'Tag der Arbeit',
128
- Date.civil(2009, 5, 21) => 'Christi Himmelfahrt',
129
- Date.civil(2009, 5, 31) => 'Pfingstsonntag',
130
- Date.civil(2009, 6, 1) => 'Pfingstmontag',
131
- Date.civil(2009, 10, 3) => 'Tag der Deutschen Einheit',
132
- Date.civil(2009, 12, 24) => 'Heilig Abend',
133
- Date.civil(2009, 12, 25) => '1. Weihnachtstag',
134
- Date.civil(2009, 12, 26) => '2. Weihnachtstag',
135
- Date.civil(2009, 12, 31) => 'Silvester' }.each do |date, name|
136
- assert_equal name, (Holidays.on(date, :de, :informal)[0] || {})[:name], "Failed on '#{name}' for date '#{date}'"
137
- end
656
+ assert_equal "Epifania", (Holidays.on(Date.civil(2007, 1, 6), [:it], [:informal])[0] || {})[:name]
138
657
 
139
- [:de_bw, :de_by, :de_st, :de_].each do |r|
140
- assert_equal 'Heilige Drei Könige', Holidays.on(Date.civil(2009, 1, 6), r)[0][:name]
141
- end
658
+ assert_equal "Pasqua", (Holidays.on(Date.civil(2007, 4, 8), [:it], [:informal])[0] || {})[:name]
142
659
 
143
- assert_equal [],Holidays.on(Date.civil(2017, 6, 15), [:de_th, :de_sn])
144
- [:de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl, :de_sn_sorbian, :de_th_cath].each do |r|
145
- assert_equal 'Fronleichnam', Holidays.on(Date.civil(2017, 6, 15), r)[0][:name]
146
- end
660
+ assert_equal "Lunedì dell'Angelo", (Holidays.on(Date.civil(2007, 4, 9), [:it], [:informal])[0] || {})[:name]
147
661
 
148
- assert_equal [], Holidays.on(Date.civil(2017, 8, 15), [:de_by, :de_sn])
149
- [:de_by_cath, :de_by_augsburg, :de_sl].each do |r|
150
- assert_equal 'Mariä Himmelfahrt', Holidays.on(Date.civil(2017, 8, 15), r)[0][:name]
151
- end
662
+ assert_equal "Festa della Liberazione", (Holidays.on(Date.civil(2007, 4, 25), [:it], [:informal])[0] || {})[:name]
152
663
 
153
- [:de_sh, :de_ni, :de_hh, :de_hb, :de_be, :de_bb, :de_mv, :de_sn, :de_st, :de_th, :de_].each do |r|
154
- assert_equal 'Reformationstag', Holidays.on(Date.civil(2017, 10, 31), r)[0][:name]
155
- end
664
+ assert_equal "Festa dei Lavoratori", (Holidays.on(Date.civil(2007, 5, 1), [:it], [:informal])[0] || {})[:name]
156
665
 
157
- # Free day in schools
158
- [:de_bw].each do |r|
159
- assert_equal 'Reformationstag', Holidays.on(Date.civil(2009, 10, 31), r, :informal)[0][:name]
160
- end
666
+ assert_equal "Festa della Repubblica", (Holidays.on(Date.civil(2007, 6, 2), [:it], [:informal])[0] || {})[:name]
161
667
 
162
- # 500 years reformation in 2017
163
- assert_equal 'Reformationstag', Holidays.on(Date.civil(2017, 10, 31), :de)[0][:name]
164
- assert_equal [], Holidays.on(Date.civil(2016, 10, 31), :de), "Reformationstag is not a holiday in 2016 in whole Germany"
165
- assert_equal [], Holidays.on(Date.civil(2018, 10, 31), :de), "Reformationstag is not a holiday in 2018 in whole Germany"
668
+ assert_equal "Assunzione", (Holidays.on(Date.civil(2007, 8, 15), [:it], [:informal])[0] || {})[:name]
166
669
 
167
- [:de_bw, :de_by, :de_nw, :de_rp, :de_sl, :de_].each do |r|
168
- assert_equal 'Allerheiligen', Holidays.on(Date.civil(2009, 11, 1), r)[0][:name]
169
- end
670
+ assert_equal "Ognissanti", (Holidays.on(Date.civil(2007, 11, 1), [:it], [:informal])[0] || {})[:name]
170
671
 
171
- [:de_by_augsburg].each do |r|
172
- assert_equal 'Friedensfest', Holidays.on(Date.civil(2015, 8, 8), r)[0][:name]
173
- end
672
+ assert_equal "Immacolata Concezione", (Holidays.on(Date.civil(2007, 12, 8), [:it], [:informal])[0] || {})[:name]
174
673
 
175
- [:de,
176
- :de_bw, :de_by, :de_bb, :de_he, :de_mv,
177
- :de_nw, :de_rp, :de_sl, :de_sn, :de_st, :de_th].each do |r|
178
- assert_equal [], Holidays.on(Date.civil(2015, 8, 8), r), "Friedensfest is not a holiday in #{r}"
179
- end
674
+ assert_equal "Natale", (Holidays.on(Date.civil(2007, 12, 25), [:it], [:informal])[0] || {})[:name]
180
675
 
181
- assert_equal [], Holidays.on(Date.civil(2010, 5, 8), :de), '2010-05-08 is not a holiday in Germany'
676
+ assert_equal "Santo Stefano", (Holidays.on(Date.civil(2007, 12, 26), [:it], [:informal])[0] || {})[:name]
182
677
 
183
- assert_equal [], Holidays.on(Date.civil(2010, 8, 8), :de), '2010-08-08 is not a holiday in Germany'
678
+ assert_equal "Neujahrstag", (Holidays.on(Date.civil(2009, 1, 1), [:li], [:informal])[0] || {})[:name]
184
679
 
185
- # Repentance Day
186
- assert_equal 'Buß- und Bettag', Holidays.on(Date.civil(2004, 11, 17), :de_sn)[0][:name]
187
- assert_equal 'Buß- und Bettag', Holidays.on(Date.civil(2005, 11, 16), :de_sn)[0][:name]
188
- assert_equal 'Buß- und Bettag', Holidays.on(Date.civil(2006, 11, 22), :de_sn)[0][:name]
189
- assert_equal 'Buß- und Bettag', Holidays.on(Date.civil(2009, 11, 18), :de_sn)[0][:name]
680
+ assert_equal "Fasnachtsdienstag", (Holidays.on(Date.civil(2011, 3, 8), [:li], [:informal])[0] || {})[:name]
190
681
 
191
- # Carnival
192
- [:de_bw, :de_by, :de_he, :de_nw, :de_rp, :de_sl, :de_sn].each do |r|
193
- assert_equal 'Weiberfastnacht', Holidays.on(Date.civil(2016, 2, 4), r, :informal)[0][:name]
194
- assert_equal 'Rosenmontag', Holidays.on(Date.civil(2016, 2, 8), r, :informal)[0][:name]
195
- assert_equal 'Aschermittwoch', Holidays.on(Date.civil(2016, 2, 10), r, :informal)[0][:name]
196
- end
682
+ assert_equal "Karfreitag", (Holidays.on(Date.civil(2009, 4, 10), [:li], [:informal])[0] || {})[:name]
197
683
 
684
+ assert_equal "Ostern", (Holidays.on(Date.civil(2009, 4, 12), [:li], [:informal])[0] || {})[:name]
198
685
 
199
- {Date.civil(2011,1,1) => 'Πρωτοχρονιά',
200
- Date.civil(2011,1,6) => 'Θεοφάνεια',
201
- Date.civil(2011,4,22) => 'Μεγάλη Παρασκευή',
202
- Date.civil(1970,4,25) => 'Μεγάλο Σάββατο',
203
- Date.civil(1985,4,14) => 'Κυριακή του Πάσχα',
204
- Date.civil(2011,4,24) => 'Κυριακή του Πάσχα',
205
- Date.civil(2027,5,2) => 'Κυριακή του Πάσχα',
206
- Date.civil(2046,4,30) => 'Δευτέρα του Πάσχα',
207
- Date.civil(2011,5,1) => 'Πρωτομαγιά',
208
- Date.civil(2011,6,13) => 'Αγίου Πνεύματος',
209
- Date.civil(2012,6,4) => 'Αγίου Πνεύματος',
210
- Date.civil(2011,3,7) => 'Καθαρά Δευτέρα',
211
- Date.civil(2012,2,27) => 'Καθαρά Δευτέρα',
212
- Date.civil(2011,12,25) => 'Χριστούγεννα',
213
- Date.civil(2011,12,26) => 'Δεύτερη ημέρα των Χριστουγέννων'}.each do |date, name|
214
- assert_equal name, (Holidays.on(date, :el, :informal)[0] || {})[:name]
215
- end
686
+ assert_equal "Ostermontag", (Holidays.on(Date.civil(2009, 4, 13), [:li], [:informal])[0] || {})[:name]
216
687
 
688
+ assert_equal "Auffahrt", (Holidays.on(Date.civil(2009, 5, 21), [:li], [:informal])[0] || {})[:name]
217
689
 
218
- {Date.civil(2009,1,1) => 'Año Nuevo',
219
- Date.civil(2009,1,6) => 'Día de Reyes',
220
- Date.civil(2009,4,10) => 'Viernes Santo',
221
- Date.civil(2009,5,1) => 'Día del Trabajador',
222
- Date.civil(2009,8,15) => 'Asunción',
223
- Date.civil(2009,10,12) => 'Día de la Hispanidad',
224
- Date.civil(2009,11,1) => 'Todos los Santos',
225
- Date.civil(2009,12,6) => 'Día de la Constitución',
226
- Date.civil(2009,12,8) => 'Inmaculada Concepción',
227
- Date.civil(2009,12,25) => 'Navidad del Señor'}.each do |date, name|
228
- assert_equal name, (Holidays.on(date, :es, :informal)[0] || {})[:name]
229
- end
690
+ assert_equal "Pfingstmontag", (Holidays.on(Date.civil(2009, 6, 1), [:li], [:informal])[0] || {})[:name]
230
691
 
231
- [:es_pv, :es_na, :es_an, :es_ib, :es_cm, :es_mu, :es_m, :es_ar, :es_cl, :es_cn, :es_lo, :es_ga, :es_ce, :es_o, :es_ex, :es_].each do |r|
232
- assert_equal 'Jueves Santo', Holidays.on(Date.civil(2009,4,9), r)[0][:name]
233
- end
234
- [:es_pv, :es_ct, :es_na, :es_v, :es_vc, :es_].each do |r|
235
- assert_equal 'Lunes de Pascua', Holidays.on(Date.civil(2009,4,13), r)[0][:name]
236
- end
692
+ assert_equal "Weihnachten", (Holidays.on(Date.civil(2009, 12, 25), [:li], [:informal])[0] || {})[:name]
237
693
 
238
- assert_equal 'Jueves Santo', Holidays.on(Date.civil(2009,4,9), :es_an)[0][:name]
694
+ assert_equal "Stefanstag", (Holidays.on(Date.civil(2009, 12, 26), [:li], [:informal])[0] || {})[:name]
239
695
 
240
- [:es_v, :es_vc, :es_cm, :es_mu, :es_m, :es_].each do |r|
241
- assert_equal 'San José', Holidays.on(Date.civil(2009,3,19), r)[0][:name]
242
- end
696
+ assert_equal "Fronleichnam", (Holidays.on(Date.civil(2009, 6, 11), [:li])[0] || {})[:name]
243
697
 
244
- [:es_cl].each do |r|
245
- assert_equal 'Día de Castilla y León', Holidays.on(Date.civil(2009,4,23), r)[0][:name]
246
- end
698
+ assert_equal "Staatsfeiertag", (Holidays.on(Date.civil(2009, 8, 15), [:li])[0] || {})[:name]
247
699
 
248
- [:es_ar].each do |r|
249
- assert_equal 'San Jorge, Día de Aragón', Holidays.on(Date.civil(2009,4,23), r)[0][:name]
250
- end
700
+ assert_equal "Allerheiligen", (Holidays.on(Date.civil(2009, 11, 1), [:li])[0] || {})[:name]
251
701
 
252
- [:es_].each do |r|
253
- assert_equal 'Día de Castilla y León', Holidays.on(Date.civil(2009,4,23), r)[0][:name]
254
- assert_equal 'San Jorge, Día de Aragón', Holidays.on(Date.civil(2009,4,23), r)[1][:name]
255
- end
702
+ assert_equal "Naujieji metai", (Holidays.on(Date.civil(2008, 1, 1), [:lt])[0] || {})[:name]
256
703
 
257
- [:es_vc, :es_v, :es_].each do |r|
258
- assert_equal 'Día de Valencia', Holidays.on(Date.civil(2009,10,9), r)[0][:name]
259
- end
704
+ assert_equal "Valstybės atkūrimo diena", (Holidays.on(Date.civil(2008, 2, 16), [:lt])[0] || {})[:name]
260
705
 
261
- [:es_ib, :es_ct, :es_].each do |r|
262
- assert_equal 'San Esteban', Holidays.on(Date.civil(2009,12,26), r)[0][:name]
263
- end
706
+ assert_equal "Nepriklausomybės atkūrimo diena", (Holidays.on(Date.civil(2008, 3, 11), [:lt])[0] || {})[:name]
264
707
 
265
- assert_equal 'Año Nuevo', Holidays.on(Date.civil(2012,1,1), :es)[0][:name]
266
- assert_equal 'Año Nuevo', Holidays.on(Date.civil(2012,1,2), :es, :observed)[0][:name]
267
- assert_equal 'Día de Andalucía', Holidays.on(Date.civil(2009,2,28), :es_an)[0][:name]
268
- assert_equal 'Día de las Islas Baleares', Holidays.on(Date.civil(2009,3,1), :es_ib)[0][:name]
269
- assert_equal 'Fiesta de la Comunidad', Holidays.on(Date.civil(2006,5,2), :es_m)[0][:name]
270
- assert_equal 'Día de las Canarias', Holidays.on(Date.civil(2006,5,30), :es_cn)[0][:name]
271
- assert_equal 'Día de la Región Castilla-La Mancha', Holidays.on(Date.civil(2009,5,31), :es_cm)[0][:name]
272
- assert_equal 'Día de la Región de Murcia', Holidays.on(Date.civil(2009,6,9), :es_mu)[0][:name]
273
- assert_equal 'Día de La Rioja', Holidays.on(Date.civil(2009,6,9), :es_lo)[0][:name]
274
- assert_equal 'Santiago Apostol', Holidays.on(Date.civil(2009,7,23), :es_ga)[0][:name]
275
- assert_equal 'Día de Ceuta', Holidays.on(Date.civil(2009,9,2), :es_ce)[0][:name]
276
- assert_equal 'Día de Asturias', Holidays.on(Date.civil(2009,9,8), :es_o)[0][:name]
277
- assert_equal 'Día de Extremadura', Holidays.on(Date.civil(2009,9,8), :es_ex)[0][:name]
278
- assert_equal 'Fiesta Nacional de Cataluña', Holidays.on(Date.civil(2009,9,11), :es_ct)[0][:name]
279
-
280
-
281
- { Date.civil(2007, 1, 1) => 'Jour de l\'an',
282
- Date.civil(2007, 4, 9) => 'Lundi de Pâques',
283
- Date.civil(2007, 5, 1) => 'Fête du travail',
284
- Date.civil(2007, 5, 8) => 'Victoire 1945',
285
- Date.civil(2007, 5, 17) => 'Ascension',
286
- Date.civil(2007, 5, 28) => 'Lundi de Pentecôte',
287
- Date.civil(2007, 7, 14) => 'Fête nationale',
288
- Date.civil(2007, 8, 15) => 'Assomption',
289
- Date.civil(2007, 11, 1) => 'Toussaint',
290
- Date.civil(2007, 11, 11) => 'Armistice 1918',
291
- Date.civil(2007, 12, 25) => 'Noël' }.each do |date, name|
292
- assert_equal name, (Holidays.on(date, :fr)[0] || {})[:name]
293
- end
294
- { Date.civil(2007, 4, 8) => 'Pâques',
295
- Date.civil(2007, 5, 27) => 'Pentecôte' }.each do |date, name|
296
- assert_nil (Holidays.on(date, :fr)[0] || {})[:name]
297
- assert_equal name, (Holidays.on(date, :fr, :informal)[0] || {})[:name]
298
- end
708
+ assert_equal "Šv. Velykos", (Holidays.on(Date.civil(2008, 3, 23), [:lt])[0] || {})[:name]
299
709
 
300
- [Date.civil(2017, 4, 14), Date.civil(2018, 3, 30), Date.civil(2019, 4, 19)].each do |date|
301
- assert_nil (Holidays.on(date, :fr)[0] || {})[:name]
302
- assert_equal 'Vendredi saint', Holidays.on(date, [:fr_a, :fr_m])[0][:name]
303
- end
710
+ assert_equal "Antroji Velykų diena", (Holidays.on(Date.civil(2008, 3, 24), [:lt])[0] || {})[:name]
304
711
 
305
- assert_nil Holidays.on(Date.civil(2017, 12, 26), [:fr])[0] || {}[:name]
306
- assert_equal 'Saint-Étienne', Holidays.on(Date.civil(2017, 12, 26), [:fr_a, :fr_m])[0][:name]
712
+ assert_equal "Darbininkų diena", (Holidays.on(Date.civil(2008, 5, 1), [:lt])[0] || {})[:name]
307
713
 
714
+ assert_equal "Joninės", (Holidays.on(Date.civil(2008, 6, 24), [:lt])[0] || {})[:name]
308
715
 
309
- {Date.civil(2008,3,21) => 'Good Friday',
310
- Date.civil(2008,3,23) => 'Easter Sunday',
311
- Date.civil(2008,5,5) => 'May Day',
312
- Date.civil(2008,5,26) => 'Bank Holiday',
313
- Date.civil(2008,11,5) => 'Guy Fawkes Day',
314
- Date.civil(2008,12,25) => 'Christmas Day',
315
- Date.civil(2008,12,26) => 'Boxing Day'}.each do |date, name|
316
- assert_equal name, (Holidays.on(date, :gb, :informal)[0] || {})[:name]
317
- end
716
+ assert_equal "Valstybės diena", (Holidays.on(Date.civil(2008, 7, 6), [:lt])[0] || {})[:name]
318
717
 
319
- assert_equal 'St. Patrick\'s Day', Holidays.on(Date.civil(2008,3,17), :gb_nir, :informal)[0][:name]
320
-
321
- # St. Andrew's Day is informal 2006 and earlier. Should only show up when :informal is passed
322
- assert_equal 'St. Andrew\'s Day', Holidays.on(Date.civil(2006,11,30), :gb_sct, :informal)[0][:name]
323
- assert_equal 'St. Andrew\'s Day', Holidays.on(Date.civil(2006,11,30), :gb_sct, :informal, :observed)[0][:name]
324
- assert_equal 'St. Andrew\'s Day', Holidays.on(Date.civil(2002,12,2), :gb_sct, :informal, :observed)[0][:name]
325
- assert_equal [], Holidays.on(Date.civil(2004,11,30), :gb_sct)
326
- assert_equal [], Holidays.on(Date.civil(2005,11,30), :gb_sct)
327
- assert_equal [], Holidays.on(Date.civil(2006,11,30), :gb_sct)
328
-
329
- # St. Andrew's Day is considered a formal bank holiday 2007 and later. It should show up regardless of whether
330
- # :informal is specified
331
- assert_equal 'St. Andrew\'s Day', Holidays.on(Date.civil(2007,11,30), :gb_sct)[0][:name]
332
- assert_equal 'St. Andrew\'s Day', Holidays.on(Date.civil(2007,11,30), :gb_sct, :informal)[0][:name]
333
- assert_equal 'St. Andrew\'s Day', Holidays.on(Date.civil(2007,11,30), :gb_sct, :informal, :observed)[0][:name]
334
- assert_equal 'St. Andrew\'s Day', Holidays.on(Date.civil(2016,11,30), :gb_sct)[0][:name]
335
- assert_equal 'St. Andrew\'s Day', Holidays.on(Date.civil(2019,11,30), :gb_sct)[0][:name]
336
- assert_equal 'St. Andrew\'s Day', Holidays.on(Date.civil(2019,12,2), :gb_sct, :observed)[0][:name]
337
-
338
- assert_equal 'Christmas Day', Holidays.on(Date.civil(2008,12,25), :gb_, :observed)[0][:name]
339
- assert_equal 'Christmas Day', Holidays.on(Date.civil(2009,12,25), :gb_, :observed)[0][:name]
340
- assert_equal 'Christmas Day', Holidays.on(Date.civil(2010,12,27), :gb_, :observed)[0][:name]
341
-
342
- assert_equal 'Boxing Day', Holidays.on(Date.civil(2008,12,26), :gb_, :observed)[0][:name]
343
- assert_equal 'Boxing Day', Holidays.on(Date.civil(2009,12,28), :gb_, :observed)[0][:name]
344
- assert_equal 'Boxing Day', Holidays.on(Date.civil(2010,12,28), :gb_, :observed)[0][:name]
345
- assert_equal 'Boxing Day', Holidays.on(Date.civil(2011,12,27), :gb_, :observed)[0][:name]
346
-
347
- assert_equal 'New Year\'s Day', Holidays.on(Date.civil(2010,1,1), :gb, :observed)[0][:name]
348
- assert_equal 'New Year\'s Day', Holidays.on(Date.civil(2011,1,3), :gb, :observed)[0][:name]
349
- assert_equal 'New Year\'s Day', Holidays.on(Date.civil(2012,1,2), :gb, :observed)[0][:name]
350
-
351
- assert_equal '2nd January', Holidays.on(Date.civil(2010,1,4), :gb_sct, :observed)[0][:name]
352
- assert_equal '2nd January', Holidays.on(Date.civil(2011,1,4), :gb_sct, :observed)[0][:name]
353
- assert_equal '2nd January', Holidays.on(Date.civil(2012,1,3), :gb_sct, :observed)[0][:name]
354
- assert_equal '2nd January', Holidays.on(Date.civil(2013,1,2), :gb_sct, :observed)[0][:name]
355
- assert_equal '2nd January', Holidays.on(Date.civil(2014,1,2), :gb_sct, :observed)[0][:name]
356
-
357
- [:gb_wls, :gb_eng, :gb_nir, :gb_eaw, :gb_].each do |r|
358
- assert_equal 'Easter Monday', Holidays.on(Date.civil(2008,3,24), r)[0][:name]
359
- assert_equal 'Bank Holiday', Holidays.on(Date.civil(2008,8,25), r)[0][:name]
360
- end
718
+ assert_equal "Žolinė", (Holidays.on(Date.civil(2008, 8, 15), [:lt])[0] || {})[:name]
361
719
 
720
+ assert_equal "Visų šventųjų diena", (Holidays.on(Date.civil(2008, 11, 1), [:lt])[0] || {})[:name]
362
721
 
363
- {Date.civil(2012,1,1) => 'Nova godina',
364
- Date.civil(2012,1,6) => 'Sveta tri kralja',
365
- Date.civil(2012,5,1) => 'Međunarodni praznik rada',
366
- Date.civil(2012,6,22) => 'Dan antifašističke borbe',
367
- Date.civil(2012,6,25) => 'Dan državnosti',
368
- Date.civil(2012,8,5) => 'Dan pobjede i domovinske zahvalnosti i dan hrvatskih branitelja',
369
- Date.civil(2012,8,15) => 'Velika Gospa',
370
- Date.civil(2012,10,8) => 'Dan neovisnosti',
371
- Date.civil(2012,11,1) => 'Dan svih svetih',
372
- Date.civil(2012,12,25) => 'Božić',
373
- Date.civil(2012,12,26) => 'Sveti Stjepan'}.each do |date, name|
374
- assert_equal name, (Holidays.on(date, :hr, :informal)[0] || {})[:name]
375
- end
722
+ assert_equal "Šv. Kūčios", (Holidays.on(Date.civil(2008, 12, 24), [:lt])[0] || {})[:name]
376
723
 
377
- # Tijelovo
378
- [Date.civil(2008,5,22), Date.civil(2009,6,11), Date.civil(2010,6,3),
379
- Date.civil(2012,6,7), Date.civil(2013,5,30), Date.civil(2014,6,19)].each do |date|
380
- assert_equal 'Tijelovo', Holidays.on(date, :hr)[0][:name]
381
- end
724
+ assert_equal "Šv. Kalėdos", (Holidays.on(Date.civil(2008, 12, 25), [:lt])[0] || {})[:name]
382
725
 
726
+ assert_equal "Antroji Kalėdų diena", (Holidays.on(Date.civil(2008, 12, 26), [:lt])[0] || {})[:name]
383
727
 
384
- {Date.civil(2012,1,1) => 'Újév',
385
- Date.civil(2011,1,1) => 'Újév',
386
- Date.civil(2012,3,15) => '1848/49-es forradalom és szabadságharc ünnepe',
387
- Date.civil(2011,4,25) => 'Húsvét hétfő',
388
- Date.civil(2012,4,9) => 'Húsvét hétfő',
389
- Date.civil(2012,5,1) => 'A munka ünnepe',
390
- Date.civil(2011,6,13) => 'Pünkösd hétfő',
391
- Date.civil(2012,5,28) => 'Pünkösd hétfő',
392
- Date.civil(2012,8,20) => 'Az államalapítás ünnepe',
393
- Date.civil(2012,10,23) => '1956-os forradalom és szabadságharc ünnepe',
394
- Date.civil(2012,11,1) => 'Mindenszentek',
395
- Date.civil(2012,12,25) => 'Karácsony',
396
- Date.civil(2012,12,26) => 'Karácsony',}.each do |date, name|
397
- assert_equal name, (Holidays.on(date, :hu, :informal)[0] || {})[:name]
398
- end
728
+ assert_equal "Naujieji metai", (Holidays.on(Date.civil(2012, 1, 1), [:lt])[0] || {})[:name]
399
729
 
400
- assert_equal [], Holidays.on(Date.civil(2012,3,14), :hu), '2012-03-14 is not a holiday in Hungary'
730
+ assert_equal "Valstybės atkūrimo diena", (Holidays.on(Date.civil(2012, 2, 16), [:lt])[0] || {})[:name]
401
731
 
732
+ assert_equal "Nepriklausomybės atkūrimo diena", (Holidays.on(Date.civil(2012, 3, 11), [:lt])[0] || {})[:name]
402
733
 
403
- {Date.civil(2008,1,1) => 'New Year\'s Day',
404
- Date.civil(2008,3,17) => 'St. Patrick\'s Day',
405
- Date.civil(2008,3,24) => 'Easter Monday',
406
- Date.civil(2008,5,5) => 'May Day',
407
- Date.civil(2008,6,2) => 'June Bank Holiday',
408
- Date.civil(2008,8,4) => 'August Bank Holiday',
409
- Date.civil(2008,10,27) => 'October Bank Holiday',
410
- Date.civil(2008,12,25) => 'Christmas Day',
411
- Date.civil(2008,12,26) => 'St. Stephen\'s Day'}.each do |date, name|
412
- assert_equal name, (Holidays.on(date, :ie)[0] || {})[:name]
413
- end
414
- {Date.civil(2012,1,2) => 'New Year\'s Day',
415
- Date.civil(2012,3,19) => 'St. Patrick\'s Day',
416
- Date.civil(2012,4,9) => 'Easter Monday',
417
- Date.civil(2012,5,7) => 'May Day',
418
- Date.civil(2012,6,4) => 'June Bank Holiday',
419
- Date.civil(2012,8,6) => 'August Bank Holiday',
420
- Date.civil(2012,10,29) => 'October Bank Holiday',
421
- Date.civil(2011,12,26) => 'Christmas Day',
422
- Date.civil(2011,12,27) => 'St. Stephen\'s Day',
423
- Date.civil(2012,12,25) => 'Christmas Day',
424
- Date.civil(2012,12,26) => 'St. Stephen\'s Day',
425
- Date.civil(2015,12,28) => 'St. Stephen\'s Day'}.each do |date, name|
426
- assert_equal name, (Holidays.on(date, :ie, :observed)[0] || {})[:name]
427
- end
734
+ assert_equal "Šv. Velykos", (Holidays.on(Date.civil(2012, 4, 8), [:lt])[0] || {})[:name]
428
735
 
736
+ assert_equal "Antroji Velykų diena", (Holidays.on(Date.civil(2012, 4, 9), [:lt])[0] || {})[:name]
429
737
 
430
- {Date.civil(2007,1,1) => 'Nýársdagur',
431
- Date.civil(2007,1,6) => 'Þrettándinn',
432
- Date.civil(2007,1,19) => 'Bóndadagur',
433
- Date.civil(2007,2,18) => 'Konudagur',
434
- Date.civil(2007,4,5) => 'Skírdagur',
435
- Date.civil(2007,4,6) => 'Föstudaginn langi',
436
- Date.civil(2007,4,8) => 'Páskadagur',
437
- Date.civil(2007,4,9) => 'Annar í páskum',
438
- Date.civil(2007,4,19) => 'Sumardagurinn fyrsti',
439
- Date.civil(2007,5,1) => 'Verkalýðsdagurinn',
440
- Date.civil(2007,5,17) => 'Uppstigningardagur',
441
- Date.civil(2007,5,27) => 'Hvítasunnudagur',
442
- Date.civil(2007,5,28) => 'Annar í hvítasunnu',
443
- Date.civil(2007,6,3) => 'Sjómannadagurinn',
444
- Date.civil(2007,6,17) => 'Lýðveldisdagurinn',
445
- Date.civil(2007,8,6) => 'Frídagur verslunarmanna',
446
- Date.civil(2007,12,24) => 'Jól',
447
- Date.civil(2007,12,25) => 'Jól',
448
- Date.civil(2007,12,26) => 'Jól',
449
- Date.civil(2007,12,31) => 'Gamlárskvöld'}.each do |date, name|
450
- assert_equal name, (Holidays.on(date, :is, :informal)[0] || {})[:name]
451
- end
738
+ assert_equal "Darbininkų diena", (Holidays.on(Date.civil(2012, 5, 1), [:lt])[0] || {})[:name]
452
739
 
740
+ assert_equal "Joninės", (Holidays.on(Date.civil(2012, 6, 24), [:lt])[0] || {})[:name]
453
741
 
454
- {Date.civil(2007,1,1) => 'Capodanno',
455
- Date.civil(2007,1,6) => 'Epifania',
456
- Date.civil(2007,4,8) => 'Pasqua',
457
- Date.civil(2007,4,9) => 'Lunedì dell\'Angelo',
458
- Date.civil(2007,4,25) => 'Festa della Liberazione',
459
- Date.civil(2007,5,1) => 'Festa dei Lavoratori',
460
- Date.civil(2007,6,2) => 'Festa della Repubblica',
461
- Date.civil(2007,8,15) => 'Assunzione',
462
- Date.civil(2007,11,1) => 'Ognissanti',
463
- Date.civil(2007,12,8) => 'Immacolata Concezione',
464
- Date.civil(2007,12,25) => 'Natale',
465
- Date.civil(2007,12,26) => 'Santo Stefano'}.each do |date, name|
466
- assert_equal name, (Holidays.on(date, :it, :informal)[0] || {})[:name]
467
- end
742
+ assert_equal "Valstybės diena", (Holidays.on(Date.civil(2012, 7, 6), [:lt])[0] || {})[:name]
468
743
 
744
+ assert_equal "Žolinė", (Holidays.on(Date.civil(2012, 8, 15), [:lt])[0] || {})[:name]
469
745
 
470
- {Date.civil(2009,1,1) => 'Neujahrstag',
471
- Date.civil(2011,3,8) => 'Fasnachtsdienstag',
472
- Date.civil(2009,4,10) => 'Karfreitag',
473
- Date.civil(2009,4,12) => 'Ostern',
474
- Date.civil(2009,4,13) => 'Ostermontag',
475
- Date.civil(2009,5,21) => 'Auffahrt',
476
- Date.civil(2009,6,1) => 'Pfingstmontag',
477
- Date.civil(2009,12,25) => 'Weihnachten',
478
- Date.civil(2009,12,26) => 'Stefanstag'}.each do |date, name|
479
- assert_equal name, Holidays.on(date, :li, :informal)[0][:name]
480
- end
746
+ assert_equal "Visų šventųjų diena", (Holidays.on(Date.civil(2012, 11, 1), [:lt])[0] || {})[:name]
481
747
 
482
- [:li].each do |r|
483
- assert_equal 'Fronleichnam', Holidays.on(Date.civil(2009,6,11), r)[0][:name]
484
- end
748
+ assert_equal "Šv. Kūčios", (Holidays.on(Date.civil(2012, 12, 24), [:lt])[0] || {})[:name]
485
749
 
486
- [:li].each do |r|
487
- assert_equal 'Staatsfeiertag', Holidays.on(Date.civil(2009,8,15), r)[0][:name]
488
- end
750
+ assert_equal "Šv. Kalėdos", (Holidays.on(Date.civil(2012, 12, 25), [:lt])[0] || {})[:name]
489
751
 
490
- [:li].each do |r|
491
- assert_equal 'Allerheiligen', Holidays.on(Date.civil(2009,11,1), r)[0][:name]
492
- end
752
+ assert_equal "Antroji Kalėdų diena", (Holidays.on(Date.civil(2012, 12, 26), [:lt])[0] || {})[:name]
493
753
 
754
+ assert_equal "Nieuwjaarsdag", (Holidays.on(Date.civil(2008, 1, 1), [:nl], [:informal])[0] || {})[:name]
494
755
 
495
- {Date.civil(2008,1,1) => 'Naujieji metai',
496
- Date.civil(2008,2,16) => 'Valstybės atkūrimo diena',
497
- Date.civil(2008,3,11) => 'Nepriklausomybės atkūrimo diena',
498
- Date.civil(2008,3,23) => 'Šv. Velykos',
499
- Date.civil(2008,3,24) => 'Antroji Velykų diena',
500
- Date.civil(2008,5,1) => 'Darbininkų diena',
501
- Date.civil(2008,6,24) => 'Joninės',
502
- Date.civil(2008,7,6) => 'Valstybės diena',
503
- Date.civil(2008,8,15) => 'Žolinė',
504
- Date.civil(2008,11,1) => 'Visų šventųjų diena',
505
- Date.civil(2008,12,24) => 'Šv. Kūčios',
506
- Date.civil(2008,12,25) => 'Šv. Kalėdos',
507
- Date.civil(2008,12,26) => 'Antroji Kalėdų diena'}.each do |date, name|
508
- assert_equal name, (Holidays.on(date, :lt)[0] || {})[:name]
509
- end
510
- {Date.civil(2012,1,1) => 'Naujieji metai',
511
- Date.civil(2012,2,16) => 'Valstybės atkūrimo diena',
512
- Date.civil(2012,3,11) => 'Nepriklausomybės atkūrimo diena',
513
- Date.civil(2012,4,8) => 'Šv. Velykos',
514
- Date.civil(2012,4,9) => 'Antroji Velykų diena',
515
- Date.civil(2012,5,1) => 'Darbininkų diena',
516
- Date.civil(2012,6,24) => 'Joninės',
517
- Date.civil(2012,7,6) => 'Valstybės diena',
518
- Date.civil(2012,8,15) => 'Žolinė',
519
- Date.civil(2012,11,1) => 'Visų šventųjų diena',
520
- Date.civil(2012,12,24) => 'Šv. Kūčios',
521
- Date.civil(2012,12,25) => 'Šv. Kalėdos',
522
- Date.civil(2012,12,26) => 'Antroji Kalėdų diena'}.each do |date, name|
523
- assert_equal name, (Holidays.on(date, :lt)[0] || {})[:name]
524
- end
756
+ assert_equal "Goede Vrijdag", (Holidays.on(Date.civil(2008, 3, 21), [:nl], [:informal])[0] || {})[:name]
525
757
 
758
+ assert_equal "Eerste Paasdag", (Holidays.on(Date.civil(2008, 3, 23), [:nl], [:informal])[0] || {})[:name]
526
759
 
527
- {Date.civil(2008,1,1) => 'Nieuwjaarsdag',
528
- Date.civil(2008,3,21) => 'Goede Vrijdag',
529
- Date.civil(2008,3,23) => 'Eerste Paasdag',
530
- Date.civil(2008,3,24) => 'Tweede Paasdag',
531
- Date.civil(2008,4,27) => 'Koningsdag',
532
- Date.civil(2008,5,1) => 'Hemelvaartsdag', # Ascension, Easter+39
533
- Date.civil(2008,5,5) => 'Bevrijdingsdag',
534
- Date.civil(2008,5,11) => 'Eerste Pinksterdag', # Pentecost, Easter+49
535
- Date.civil(2008,5,12) => 'Tweede Pinksterdag', # Pentecost, Easter+50
536
- Date.civil(2008,12,25) => 'Eerste Kerstdag',
537
- Date.civil(2008,12,26) => 'Tweede Kerstdag'}.each do |date, name|
538
- assert_equal name, (Holidays.on(date, :nl, :informal)[0] || {})[:name]
539
- end
760
+ assert_equal "Tweede Paasdag", (Holidays.on(Date.civil(2008, 3, 24), [:nl], [:informal])[0] || {})[:name]
540
761
 
762
+ assert_equal "Koningsdag", (Holidays.on(Date.civil(2008, 4, 27), [:nl], [:informal])[0] || {})[:name]
541
763
 
542
- {Date.civil(2010,1,1) => 'Nyttårsdag',
543
- Date.civil(2010,5,1) => '1. mai',
544
- Date.civil(2010,5,17) => '17. mai',
545
- Date.civil(2010,12,24) => 'Julaften',
546
- Date.civil(2010,12,25) => '1. juledag',
547
- Date.civil(2010,12,26) => '2. juledag',
548
- Date.civil(2010,12,31) => 'Nyttårsaften',
549
- Date.civil(2010,2,14) => 'Fastelavn',
550
- Date.civil(2010,3,28) => 'Palmesøndag',
551
- Date.civil(2010,4,1) => 'Skjærtorsdag',
552
- Date.civil(2010,4,2) => 'Langfredag',
553
- Date.civil(2010,4,4) => '1. påskedag',
554
- Date.civil(2010,4,5) => '2. påskedag',
555
- Date.civil(2010,5,13) => 'Kristi Himmelfartsdag',
556
- Date.civil(2010,5,23) => '1. pinsedag',
557
- Date.civil(2010,5,24) => '2. pinsedag'}.each do |date, name|
558
- assert_equal name, (Holidays.on(date, :no, :informal)[0] || {})[:name]
559
- end
560
-
561
-
562
- {Date.civil(2011,1,1) => 'Nowy Rok',
563
- Date.civil(2011,5,1) => 'Święto Państwowe (Święto Pracy)',
564
- Date.civil(2011,5,3) => 'Święto Narodowe Trzeciego Maja',
565
- Date.civil(2011,11,1) => 'Wszystkich Świętych',
566
- Date.civil(2011,11,11) => 'Narodowe Święto Niepodległości',
567
- Date.civil(2011,12,25) => 'pierwszy dzień Bożego Narodzenia',
568
- Date.civil(2011,12,26) => 'drugi dzień Bożego Narodzenia'}.each do |date, name|
569
- assert_equal name, (Holidays.on(date, :pl)[0] || {})[:name]
570
- end
764
+ assert_equal "Hemelvaartsdag", (Holidays.on(Date.civil(2008, 5, 1), [:nl], [:informal])[0] || {})[:name]
571
765
 
572
- # informal
573
- {Date.civil(2011,1,21) => 'Dzień Babci',
574
- Date.civil(2011,1,22) => 'Dzień Dziadka',
575
- Date.civil(2011,2,2) => 'Ofiarowanie Pańskie (Matki Boskiej Gromnicznej)',
576
- Date.civil(2011,2,14) => 'Dzień Zakochanych (Walentynki)',
577
- Date.civil(2010,3,8) => 'Dzień Kobiet',
578
- Date.civil(2011,3,10) => 'Dzień Mężczyzn',
579
- Date.civil(2011,4,1) => 'Prima Aprilis',
580
- Date.civil(2010,4,22) => 'Międzynarodowy Dzień Ziemi',
581
- Date.civil(2011,5,2) => 'Dzień Flagi Rzeczpospolitej Polskiej',
582
- Date.civil(2010,6,23) => 'Dzień Ojca',
583
- Date.civil(2011,9,30) => 'Dzień Chłopaka',
584
- Date.civil(2011,10,14) => 'Dzień Nauczyciela (Dzień Edukacji Narodowej)',
585
- Date.civil(2011,11,2) => 'Dzień Zaduszny',
586
- Date.civil(2011,11,29) => 'Andrzejki',
587
- Date.civil(2011,12,4) => 'Barbórka (Dzień Górnika, Naftowca i Gazownika)',
588
- Date.civil(2011,12,6) => 'Mikołajki',
589
- Date.civil(2011,12,24) => 'Wigilia Bożego Narodzenia',
590
- Date.civil(2011,12,31) => 'Sylwester'}.each do |date, name|
591
- assert_equal name, (Holidays.on(date, :pl, :informal)[0] || {})[:name]
592
- end
766
+ assert_equal "Bevrijdingsdag", (Holidays.on(Date.civil(2008, 5, 5), [:nl], [:informal])[0] || {})[:name]
593
767
 
594
- # informal
595
- {Date.civil(2011,1,21) => 'Dzień Babci',
596
- Date.civil(2011,1,22) => 'Dzień Dziadka',
597
- Date.civil(2011,2,2) => 'Ofiarowanie Pańskie (Matki Boskiej Gromnicznej)',
598
- Date.civil(2011,2,14) => 'Dzień Zakochanych (Walentynki)',
599
- Date.civil(2010,3,8) => 'Dzień Kobiet',
600
- Date.civil(2011,3,10) => 'Dzień Mężczyzn',
601
- Date.civil(2011,4,1) => 'Prima Aprilis',
602
- Date.civil(2010,4,22) => 'Międzynarodowy Dzień Ziemi',
603
- Date.civil(2011,5,2) => 'Dzień Flagi Rzeczpospolitej Polskiej',
604
- Date.civil(2010,6,23) => 'Dzień Ojca',
605
- Date.civil(2011,9,30) => 'Dzień Chłopaka',
606
- Date.civil(2011,10,14) => 'Dzień Nauczyciela (Dzień Edukacji Narodowej)',
607
- Date.civil(2011,11,2) => 'Dzień Zaduszny',
608
- Date.civil(2011,11,29) => 'Andrzejki',
609
- Date.civil(2011,12,4) => 'Barbórka (Dzień Górnika, Naftowca i Gazownika)',
610
- Date.civil(2011,12,6) => 'Mikołajki',
611
- Date.civil(2011,12,24) => 'Wigilia Bożego Narodzenia',
612
- Date.civil(2011,12,31) => 'Sylwester'}.each do |date, name|
613
- assert_equal nil, (Holidays.on(date, :pl)[0] || {})[:name]
614
- end
768
+ assert_equal "Eerste Pinksterdag", (Holidays.on(Date.civil(2008, 5, 11), [:nl], [:informal])[0] || {})[:name]
615
769
 
616
- # Objawienie Pańskie (święto Trzech Króli) -- formal since 2011
617
- [Date.civil(2008,1,6), Date.civil(2009,1,6), Date.civil(2010,1,6)].each do |date|
618
- assert_equal nil, (Holidays.on(date, :pl)[0] || {})[:name]
619
- end
620
- [Date.civil(2008,1,6), Date.civil(2009,1,6), Date.civil(2010,1,6)].each do |date|
621
- assert_equal 'Objawienie Pańskie (święto Trzech Króli)', (Holidays.on(date, :pl, :informal)[0] || {})[:name]
622
- end
623
- [Date.civil(2011,1,6), Date.civil(2012,1,6), Date.civil(2013,1,6)].each do |date|
624
- assert_equal 'Objawienie Pańskie (święto Trzech Króli)', (Holidays.on(date, :pl)[0] || {})[:name]
625
- end
770
+ assert_equal "Tweede Pinksterdag", (Holidays.on(Date.civil(2008, 5, 12), [:nl], [:informal])[0] || {})[:name]
626
771
 
627
- # Tłusty Czwartek
628
- [Date.civil(2008,1,31), Date.civil(2009,2,19), Date.civil(2010,2,11),
629
- Date.civil(2011,3,3), Date.civil(2012,2,16)].each do |date|
630
- assert_equal 'Tłusty Czwartek', (Holidays.on(date, :pl, :informal)[0] || {})[:name]
631
- end
772
+ assert_equal "Eerste Kerstdag", (Holidays.on(Date.civil(2008, 12, 25), [:nl], [:informal])[0] || {})[:name]
632
773
 
633
- # Ostatki
634
- [Date.civil(2008,2,5), Date.civil(2009,2,24), Date.civil(2010,2,16),
635
- Date.civil(2011,3,8), Date.civil(2012,2,21)].each do |date|
636
- assert_equal 'Ostatki', (Holidays.on(date, :pl, :informal)[0] || {})[:name]
637
- end
774
+ assert_equal "Tweede Kerstdag", (Holidays.on(Date.civil(2008, 12, 26), [:nl], [:informal])[0] || {})[:name]
638
775
 
639
- # Środa Popielcowa
640
- [Date.civil(2008,2,6), Date.civil(2009,2,25), Date.civil(2010,2,17),
641
- Date.civil(2011,3,9), Date.civil(2012,2,22)].each do |date|
642
- assert_equal 'Środa Popielcowa', (Holidays.on(date, :pl, :informal)[0] || {})[:name]
643
- end
776
+ assert_equal "Nyttårsdag", (Holidays.on(Date.civil(2010, 1, 1), [:no], [:informal])[0] || {})[:name]
644
777
 
645
- # Niedziela Palmowa
646
- [Date.civil(2008,3,16), Date.civil(2009,4,5), Date.civil(2010,3,28),
647
- Date.civil(2011,4,17), Date.civil(2012,4,1)].each do |date|
648
- assert_equal 'Niedziela Palmowa', (Holidays.on(date, :pl, :informal)[0] || {})[:name]
649
- end
778
+ assert_equal "1. mai", (Holidays.on(Date.civil(2010, 5, 1), [:no], [:informal])[0] || {})[:name]
650
779
 
651
- # Wielki Czwartek
652
- [Date.civil(2008,3,20), Date.civil(2009,4,9), Date.civil(2010,4,1),
653
- Date.civil(2011,4,21), Date.civil(2012,4,5)].each do |date|
654
- assert_equal 'Wielki Czwartek', (Holidays.on(date, :pl, :informal)[0] || {})[:name]
655
- end
780
+ assert_equal "17. mai", (Holidays.on(Date.civil(2010, 5, 17), [:no], [:informal])[0] || {})[:name]
656
781
 
657
- # Wielki Piątek
658
- [Date.civil(2008,3,21), Date.civil(2009,4,10), Date.civil(2010,4,2),
659
- Date.civil(2011,4,22), Date.civil(2012,4,6)].each do |date|
660
- assert_equal 'Wielki Piątek', (Holidays.on(date, :pl, :informal)[0] || {})[:name]
661
- end
782
+ assert_equal "Julaften", (Holidays.on(Date.civil(2010, 12, 24), [:no], [:informal])[0] || {})[:name]
662
783
 
663
- # Wielka Sobota
664
- [Date.civil(2008,3,22), Date.civil(2009,4,11), Date.civil(2010,4,3),
665
- Date.civil(2011,4,23), Date.civil(2012,4,7)].each do |date|
666
- assert_equal 'Wielka Sobota', (Holidays.on(date, :pl, :informal)[0] || {})[:name]
667
- end
784
+ assert_equal "1. juledag", (Holidays.on(Date.civil(2010, 12, 25), [:no], [:informal])[0] || {})[:name]
668
785
 
669
- # Niedziela Wielkanocna
670
- [Date.civil(2008,3,23), Date.civil(2009,4,12), Date.civil(2010,4,4),
671
- Date.civil(2011,4,24), Date.civil(2012,4,8)].each do |date|
672
- assert_equal 'Niedziela Wielkanocna', (Holidays.on(date, :pl)[0] || {})[:name]
673
- end
786
+ assert_equal "2. juledag", (Holidays.on(Date.civil(2010, 12, 26), [:no], [:informal])[0] || {})[:name]
674
787
 
675
- # Poniedziałek Wielkanocny (Lany Poniedziałek)
676
- [Date.civil(2008,3,24), Date.civil(2009,4,13), Date.civil(2010,4,5),
677
- Date.civil(2011,4,25), Date.civil(2012,4,9)].each do |date|
678
- assert_equal 'Poniedziałek Wielkanocny (Lany Poniedziałek)', (Holidays.on(date, :pl)[0] || {})[:name]
679
- end
788
+ assert_equal "Nyttårsaften", (Holidays.on(Date.civil(2010, 12, 31), [:no], [:informal])[0] || {})[:name]
680
789
 
681
- # Zesłanie Ducha Świętego (Zielone Świątki)
682
- [Date.civil(2008,5,11), Date.civil(2009,5,31), Date.civil(2010,5,23),
683
- Date.civil(2011,6,12), Date.civil(2012,5,27)].each do |date|
684
- assert_equal 'Zesłanie Ducha Świętego (Zielone Świątki)', (Holidays.on(date, :pl)[0] || {})[:name]
685
- end
790
+ assert_equal "Fastelavn", (Holidays.on(Date.civil(2010, 2, 14), [:no], [:informal])[0] || {})[:name]
686
791
 
687
- # Uroczystość Najświętszego Ciała i Krwi Pańskiej (Boże Ciało)
688
- [Date.civil(2008,5,22), Date.civil(2009,6,11), Date.civil(2010,6,3),
689
- Date.civil(2011,6,23), Date.civil(2012,6,7)].each do |date|
690
- assert_equal 'Uroczystość Najświętszego Ciała i Krwi Pańskiej (Boże Ciało)', (Holidays.on(date, :pl)[0] || {})[:name]
691
- end
792
+ assert_equal "Palmesøndag", (Holidays.on(Date.civil(2010, 3, 28), [:no], [:informal])[0] || {})[:name]
692
793
 
693
- # Wniebowzięcie Najświętszej Maryi Panny & Święto Wojska Polskiego
694
- assert_equal 'Wniebowzięcie Najświętszej Maryi Panny', (Holidays.on(Date.civil(2011,8,15), :pl)[0] || {})[:name]
695
- assert_equal 'Święto Wojska Polskiego', (Holidays.on(Date.civil(2011,8,15), :pl)[1] || {})[:name]
696
-
697
-
698
- { Date.civil(2008, 1, 1) => 'Ano Novo',
699
- Date.civil(2005, 2, 8) => 'Carnaval',
700
- Date.civil(2006, 2, 28) => 'Carnaval',
701
- Date.civil(2007, 2, 20) => 'Carnaval',
702
- Date.civil(2008, 2, 5) => 'Carnaval',
703
- Date.civil(2008, 3, 21) => 'Sexta-feira Santa',
704
- Date.civil(2008, 3, 23) => 'Páscoa',
705
- Date.civil(2016, 3, 27) => 'Páscoa',
706
- Date.civil(2008, 4, 25) => 'Dia da Liberdade',
707
- Date.civil(2008, 5, 1) => 'Dia do Trabalhador',
708
- Date.civil(2016, 5, 26) => 'Corpo de Deus',
709
- Date.civil(2008, 6, 10) => 'Dia de Portugal',
710
- Date.civil(2008, 8, 15) => 'Assunção de Nossa Senhora',
711
- Date.civil(2008, 10, 5) => 'Dia da República',
712
- Date.civil(2008, 11, 1) => 'Dia de Todos-os-Santos',
713
- Date.civil(2008, 12, 1) => 'Restauração da Independência',
714
- Date.civil(2008, 12, 8) => 'Imaculada Conceição',
715
- Date.civil(2008, 12, 25) => 'Natal' }.each do |date, name|
716
- assert_equal name, (Holidays.on(date, :pt, :informal)[0] || {})[:name]
717
- end
794
+ assert_equal "Skjærtorsdag", (Holidays.on(Date.civil(2010, 4, 1), [:no], [:informal])[0] || {})[:name]
718
795
 
719
- assert_nil Holidays.on(Date.civil(2017, 6, 13), [:pt])[0] || {}[:name]
720
- assert_equal 'Dia de Santo António', Holidays.on(Date.civil(2017, 6, 13), [:pt_li])[0][:name]
721
-
722
- assert_nil Holidays.on(Date.civil(2017, 6, 24), [:pt])[0] || {}[:name]
723
- assert_equal 'Dia de São João', Holidays.on(Date.civil(2017, 6, 24), [:pt_po])[0][:name]
724
-
725
-
726
- {
727
- Date.civil(1961,4,9) => 'Paștele - duminică',
728
- Date.civil(1961,4,10) => 'Paștele - luni',
729
- Date.civil(2013,5,5) => 'Paștele - duminică',
730
- Date.civil(2013,5,6) => 'Paștele - luni',
731
- Date.civil(2027,5,2) => 'Paștele - duminică',
732
- Date.civil(2027,5,3) => 'Paștele - luni',
733
- Date.civil(2012,6,4) => 'Rusaliile - 51',
734
- Date.civil(2013,6,23) => 'Rusaliile - 50',
735
- Date.civil(2013,6,24) => 'Rusaliile - 51',
736
- Date.civil(1986,6,22) => 'Rusaliile - 50',
737
- Date.civil(1986,6,23) => 'Rusaliile - 51',
738
- Date.civil(2009,1,1) => 'Anul nou',
739
- Date.civil(2014,1,2) => 'Anul nou',
740
- Date.civil(2009,5,1) => 'Ziua muncii',
741
- Date.civil(2012,8,15) => 'Adormirea Maicii Domnului',
742
- Date.civil(2013,11,30) => 'Sfântul Apostol Andrei',
743
- Date.civil(2013,12,1) => 'Ziua Națională',
744
- Date.civil(2013,12,25) => 'Sărbătoarea Nașterii Domnului',
745
- Date.civil(2013,12,26) => 'Sărbătoarea Nașterii Domnului'}.each do |date, name|
746
- assert_equal name, (Holidays.on(date, :ro, :informal)[0] || {})[:name]
747
- end
748
-
749
- assert_equal [], Holidays.on(Date.civil(2013,7,23), :ro), '2013-07-23 is not a holiday in Romania'
750
-
751
-
752
- {Date.civil(2013,1,1) => 'Nový rok',
753
- Date.civil(2013,1,6) => 'Zjavenie Pána (Traja králi)',
754
- Date.civil(2013,3,29) => 'Veľký piatok',
755
- Date.civil(2013,4,1) => 'Veľkonočný pondelok',
756
- Date.civil(2013,5,1) => 'Sviatok práce',
757
- Date.civil(2013,5,8) => 'Deň víťazstva nad fašizmom',
758
- Date.civil(2013,7,5) => 'Sviatok svätého Cyrila a svätého Metoda',
759
- Date.civil(2013,8,29) => 'Výročie Slovenského národného povstania',
760
- Date.civil(2013,9,1) => 'Deň Ústavy Slovenskej republiky',
761
- Date.civil(2013,9,15) => 'Sedembolestná Panna Mária',
762
- Date.civil(2013,11,1) => 'Sviatok všetkých svätých',
763
- Date.civil(2013,11,17) => 'Deň boja za slobodu a demokraciu',
764
- Date.civil(2013,12,24) => 'Štedrý deň',
765
- Date.civil(2013,12,25) => '1. sviatok vianočný',
766
- Date.civil(2013,12,26) => '2. sviatok vianočný'}.each do |date, name|
767
- assert_equal name, (Holidays.on(date, :sk, :informal)[0] || {})[:name]
768
- end
796
+ assert_equal "Langfredag", (Holidays.on(Date.civil(2010, 4, 2), [:no], [:informal])[0] || {})[:name]
769
797
 
798
+ assert_equal "1. påskedag", (Holidays.on(Date.civil(2010, 4, 4), [:no], [:informal])[0] || {})[:name]
770
799
 
771
- assert_equal 'velikonočna nedelja', Holidays.on(Date.civil(2015,4,5), :si)[0][:name]
772
- assert_equal 'velikonočna nedelja', Holidays.on(Date.civil(2016,3,27), :si)[0][:name]
773
-
774
- assert_equal 'velikonočni ponedeljek', Holidays.on(Date.civil(2015,4,6), :si)[0][:name]
775
- assert_equal 'velikonočni ponedeljek', Holidays.on(Date.civil(2016,3,28), :si)[0][:name]
776
-
777
- assert_equal 'binkošti', Holidays.on(Date.civil(2015,5,24), :si)[0][:name]
778
- assert_equal 'binkošti', Holidays.on(Date.civil(2016,5,15), :si)[0][:name]
779
-
780
- (2014..2020).each do |year|
781
- {Date.civil(year,1,1) => 'novo leto',
782
- Date.civil(year,2,8) => 'Prešernov dan, slovenski kulturni praznik',
783
- Date.civil(year,4,27) => 'dan upora proti okupatorju',
784
- Date.civil(year,5,1) => 'praznik dela',
785
- Date.civil(year,5,2) => 'praznik dela',
786
- Date.civil(year,6,25) => 'dan državnosti',
787
- Date.civil(year,8,15) => 'Marijino vnebovzetje',
788
- Date.civil(year,10,31) => 'dan reformacije',
789
- Date.civil(year,11,1) => 'dan spomina na mrtve',
790
- Date.civil(year,12,25) => 'božič',
791
- Date.civil(2008,12,26) => 'dan samostojnosti in enotnosti'}.each do |date, name|
792
- assert_equal name, (Holidays.on(date, :si, :informal)[0] || {})[:name]
793
- end
794
- end
800
+ assert_equal "2. påskedag", (Holidays.on(Date.civil(2010, 4, 5), [:no], [:informal])[0] || {})[:name]
795
801
 
802
+ assert_equal "Kristi Himmelfartsdag", (Holidays.on(Date.civil(2010, 5, 13), [:no], [:informal])[0] || {})[:name]
796
803
 
797
- {Date.civil(2015,1,1) => "New Year's Day",
798
- Date.civil(2015,3,3) => "Liberation Day",
799
- Date.civil(2015,3,28) => "Good Friday",
800
- Date.civil(2015,3,29) => "Holy Saturday",
801
- Date.civil(2015,3,30) => "Easter Sunday",
802
- Date.civil(2015,3,31) => "Easter Monday",
803
- Date.civil(2015,5,1) => "Labour Day",
804
- Date.civil(2015,5,6) => "St. George's Day",
805
- Date.civil(2015,5,24) => "Slavic Literacy Day",
806
- Date.civil(2015,9,6) => "Unification Day",
807
- Date.civil(2015,9,22) => "The Independence Day",
808
- Date.civil(2015,11,1) => "Revival Leader's Day",
809
- Date.civil(2015,12,24) => "Christmas Eve",
810
- Date.civil(2015,12,25) => "Christmas",
811
- Date.civil(2015,12,26) => "Christmas"}.each do |date, name|
812
- assert_equal name, (Holidays.on(date, :bg_en)[0] || {})[:name]
813
- end
804
+ assert_equal "1. pinsedag", (Holidays.on(Date.civil(2010, 5, 23), [:no], [:informal])[0] || {})[:name]
805
+
806
+ assert_equal "2. pinsedag", (Holidays.on(Date.civil(2010, 5, 24), [:no], [:informal])[0] || {})[:name]
807
+
808
+ assert_equal "Nowy Rok", (Holidays.on(Date.civil(2011, 1, 1), [:pl])[0] || {})[:name]
809
+
810
+ assert_equal "Święto Państwowe (Święto Pracy)", (Holidays.on(Date.civil(2011, 5, 1), [:pl])[0] || {})[:name]
811
+
812
+ assert_equal "Święto Narodowe Trzeciego Maja", (Holidays.on(Date.civil(2011, 5, 3), [:pl])[0] || {})[:name]
813
+
814
+ assert_equal "Wszystkich Świętych", (Holidays.on(Date.civil(2011, 11, 1), [:pl])[0] || {})[:name]
815
+
816
+ assert_equal "Narodowe Święto Niepodległości", (Holidays.on(Date.civil(2011, 11, 11), [:pl])[0] || {})[:name]
817
+
818
+ assert_equal "pierwszy dzień Bożego Narodzenia", (Holidays.on(Date.civil(2011, 12, 25), [:pl])[0] || {})[:name]
819
+
820
+ assert_equal "drugi dzień Bożego Narodzenia", (Holidays.on(Date.civil(2011, 12, 26), [:pl])[0] || {})[:name]
821
+
822
+ assert_equal "Dzień Babci", (Holidays.on(Date.civil(2011, 1, 21), [:pl], [:informal])[0] || {})[:name]
823
+
824
+ assert_equal "Dzień Dziadka", (Holidays.on(Date.civil(2011, 1, 22), [:pl], [:informal])[0] || {})[:name]
825
+
826
+ assert_equal "Ofiarowanie Pańskie (Matki Boskiej Gromnicznej)", (Holidays.on(Date.civil(2011, 2, 2), [:pl], [:informal])[0] || {})[:name]
827
+
828
+ assert_equal "Dzień Zakochanych (Walentynki)", (Holidays.on(Date.civil(2011, 2, 14), [:pl], [:informal])[0] || {})[:name]
829
+
830
+ assert_equal "Dzień Kobiet", (Holidays.on(Date.civil(2010, 3, 8), [:pl], [:informal])[0] || {})[:name]
831
+
832
+ assert_equal "Dzień Mężczyzn", (Holidays.on(Date.civil(2011, 3, 10), [:pl], [:informal])[0] || {})[:name]
833
+
834
+ assert_equal "Prima Aprilis", (Holidays.on(Date.civil(2011, 4, 1), [:pl], [:informal])[0] || {})[:name]
835
+
836
+ assert_equal "Międzynarodowy Dzień Ziemi", (Holidays.on(Date.civil(2010, 4, 22), [:pl], [:informal])[0] || {})[:name]
837
+
838
+ assert_equal "Dzień Flagi Rzeczpospolitej Polskiej", (Holidays.on(Date.civil(2011, 5, 2), [:pl], [:informal])[0] || {})[:name]
839
+
840
+ assert_equal "Dzień Ojca", (Holidays.on(Date.civil(2010, 6, 23), [:pl], [:informal])[0] || {})[:name]
841
+
842
+ assert_equal "Dzień Chłopaka", (Holidays.on(Date.civil(2011, 9, 30), [:pl], [:informal])[0] || {})[:name]
843
+
844
+ assert_equal "Dzień Nauczyciela (Dzień Edukacji Narodowej)", (Holidays.on(Date.civil(2011, 10, 14), [:pl], [:informal])[0] || {})[:name]
845
+
846
+ assert_equal "Dzień Zaduszny", (Holidays.on(Date.civil(2011, 11, 2), [:pl], [:informal])[0] || {})[:name]
847
+
848
+ assert_equal "Andrzejki", (Holidays.on(Date.civil(2011, 11, 29), [:pl], [:informal])[0] || {})[:name]
849
+
850
+ assert_equal "Barbórka (Dzień Górnika, Naftowca i Gazownika)", (Holidays.on(Date.civil(2011, 12, 4), [:pl], [:informal])[0] || {})[:name]
851
+
852
+ assert_equal "Mikołajki", (Holidays.on(Date.civil(2011, 12, 6), [:pl], [:informal])[0] || {})[:name]
853
+
854
+ assert_equal "Wigilia Bożego Narodzenia", (Holidays.on(Date.civil(2011, 12, 24), [:pl], [:informal])[0] || {})[:name]
855
+
856
+ assert_equal "Sylwester", (Holidays.on(Date.civil(2011, 12, 31), [:pl], [:informal])[0] || {})[:name]
857
+
858
+ assert_nil (Holidays.on(Date.civil(2011, 1, 21), [:pl])[0] || {})[:name]
859
+
860
+ assert_nil (Holidays.on(Date.civil(2011, 1, 22), [:pl])[0] || {})[:name]
861
+
862
+ assert_nil (Holidays.on(Date.civil(2011, 2, 2), [:pl])[0] || {})[:name]
863
+
864
+ assert_nil (Holidays.on(Date.civil(2011, 2, 14), [:pl])[0] || {})[:name]
865
+
866
+ assert_nil (Holidays.on(Date.civil(2010, 3, 8), [:pl])[0] || {})[:name]
867
+
868
+ assert_nil (Holidays.on(Date.civil(2011, 3, 10), [:pl])[0] || {})[:name]
869
+
870
+ assert_nil (Holidays.on(Date.civil(2011, 4, 1), [:pl])[0] || {})[:name]
871
+
872
+ assert_nil (Holidays.on(Date.civil(2010, 4, 22), [:pl])[0] || {})[:name]
873
+
874
+ assert_nil (Holidays.on(Date.civil(2011, 5, 2), [:pl])[0] || {})[:name]
875
+
876
+ assert_nil (Holidays.on(Date.civil(2010, 6, 23), [:pl])[0] || {})[:name]
877
+
878
+ assert_nil (Holidays.on(Date.civil(2011, 9, 30), [:pl])[0] || {})[:name]
879
+
880
+ assert_nil (Holidays.on(Date.civil(2011, 10, 14), [:pl])[0] || {})[:name]
881
+
882
+ assert_nil (Holidays.on(Date.civil(2011, 11, 2), [:pl])[0] || {})[:name]
883
+
884
+ assert_nil (Holidays.on(Date.civil(2011, 11, 29), [:pl])[0] || {})[:name]
885
+
886
+ assert_nil (Holidays.on(Date.civil(2011, 12, 4), [:pl])[0] || {})[:name]
887
+
888
+ assert_nil (Holidays.on(Date.civil(2011, 12, 6), [:pl])[0] || {})[:name]
889
+
890
+ assert_nil (Holidays.on(Date.civil(2011, 12, 24), [:pl])[0] || {})[:name]
891
+
892
+ assert_nil (Holidays.on(Date.civil(2011, 12, 31), [:pl])[0] || {})[:name]
893
+
894
+ assert_nil (Holidays.on(Date.civil(2008, 1, 6), [:pl])[0] || {})[:name]
895
+
896
+ assert_nil (Holidays.on(Date.civil(2009, 1, 6), [:pl])[0] || {})[:name]
897
+
898
+ assert_nil (Holidays.on(Date.civil(2010, 1, 6), [:pl])[0] || {})[:name]
899
+
900
+ assert_equal "Objawienie Pańskie (święto Trzech Króli)", (Holidays.on(Date.civil(2008, 1, 6), [:pl], [:informal])[0] || {})[:name]
901
+
902
+ assert_equal "Objawienie Pańskie (święto Trzech Króli)", (Holidays.on(Date.civil(2009, 1, 6), [:pl], [:informal])[0] || {})[:name]
903
+
904
+ assert_equal "Objawienie Pańskie (święto Trzech Króli)", (Holidays.on(Date.civil(2010, 1, 6), [:pl], [:informal])[0] || {})[:name]
905
+
906
+ assert_equal "Objawienie Pańskie (święto Trzech Króli)", (Holidays.on(Date.civil(2011, 1, 6), [:pl])[0] || {})[:name]
907
+
908
+ assert_equal "Objawienie Pańskie (święto Trzech Króli)", (Holidays.on(Date.civil(2012, 1, 6), [:pl])[0] || {})[:name]
909
+
910
+ assert_equal "Objawienie Pańskie (święto Trzech Króli)", (Holidays.on(Date.civil(2013, 1, 6), [:pl])[0] || {})[:name]
911
+
912
+ assert_equal "Tłusty Czwartek", (Holidays.on(Date.civil(2008, 1, 31), [:pl], [:informal])[0] || {})[:name]
913
+
914
+ assert_equal "Tłusty Czwartek", (Holidays.on(Date.civil(2009, 2, 19), [:pl], [:informal])[0] || {})[:name]
915
+
916
+ assert_equal "Tłusty Czwartek", (Holidays.on(Date.civil(2010, 2, 11), [:pl], [:informal])[0] || {})[:name]
917
+
918
+ assert_equal "Tłusty Czwartek", (Holidays.on(Date.civil(2011, 3, 3), [:pl], [:informal])[0] || {})[:name]
919
+
920
+ assert_equal "Tłusty Czwartek", (Holidays.on(Date.civil(2012, 2, 16), [:pl], [:informal])[0] || {})[:name]
921
+
922
+ assert_equal "Ostatki", (Holidays.on(Date.civil(2008, 2, 5), [:pl], [:informal])[0] || {})[:name]
923
+
924
+ assert_equal "Ostatki", (Holidays.on(Date.civil(2009, 2, 24), [:pl], [:informal])[0] || {})[:name]
925
+
926
+ assert_equal "Ostatki", (Holidays.on(Date.civil(2010, 2, 16), [:pl], [:informal])[0] || {})[:name]
927
+
928
+ assert_equal "Ostatki", (Holidays.on(Date.civil(2011, 3, 8), [:pl], [:informal])[0] || {})[:name]
929
+
930
+ assert_equal "Ostatki", (Holidays.on(Date.civil(2012, 2, 21), [:pl], [:informal])[0] || {})[:name]
931
+
932
+ assert_equal "Środa Popielcowa", (Holidays.on(Date.civil(2008, 2, 6), [:pl], [:informal])[0] || {})[:name]
933
+
934
+ assert_equal "Środa Popielcowa", (Holidays.on(Date.civil(2009, 2, 25), [:pl], [:informal])[0] || {})[:name]
935
+
936
+ assert_equal "Środa Popielcowa", (Holidays.on(Date.civil(2010, 2, 17), [:pl], [:informal])[0] || {})[:name]
937
+
938
+ assert_equal "Środa Popielcowa", (Holidays.on(Date.civil(2011, 3, 9), [:pl], [:informal])[0] || {})[:name]
939
+
940
+ assert_equal "Środa Popielcowa", (Holidays.on(Date.civil(2012, 2, 22), [:pl], [:informal])[0] || {})[:name]
941
+
942
+ assert_equal "Niedziela Palmowa", (Holidays.on(Date.civil(2008, 3, 16), [:pl], [:informal])[0] || {})[:name]
943
+
944
+ assert_equal "Niedziela Palmowa", (Holidays.on(Date.civil(2009, 4, 5), [:pl], [:informal])[0] || {})[:name]
945
+
946
+ assert_equal "Niedziela Palmowa", (Holidays.on(Date.civil(2010, 3, 28), [:pl], [:informal])[0] || {})[:name]
947
+
948
+ assert_equal "Niedziela Palmowa", (Holidays.on(Date.civil(2011, 4, 17), [:pl], [:informal])[0] || {})[:name]
949
+
950
+ assert_equal "Niedziela Palmowa", (Holidays.on(Date.civil(2012, 4, 1), [:pl], [:informal])[0] || {})[:name]
951
+
952
+ assert_equal "Wielki Czwartek", (Holidays.on(Date.civil(2008, 3, 20), [:pl], [:informal])[0] || {})[:name]
953
+
954
+ assert_equal "Wielki Czwartek", (Holidays.on(Date.civil(2009, 4, 9), [:pl], [:informal])[0] || {})[:name]
955
+
956
+ assert_equal "Wielki Czwartek", (Holidays.on(Date.civil(2010, 4, 1), [:pl], [:informal])[0] || {})[:name]
957
+
958
+ assert_equal "Wielki Czwartek", (Holidays.on(Date.civil(2011, 4, 21), [:pl], [:informal])[0] || {})[:name]
959
+
960
+ assert_equal "Wielki Czwartek", (Holidays.on(Date.civil(2012, 4, 5), [:pl], [:informal])[0] || {})[:name]
961
+
962
+ assert_equal "Wielki Piątek", (Holidays.on(Date.civil(2008, 3, 21), [:pl], [:informal])[0] || {})[:name]
963
+
964
+ assert_equal "Wielki Piątek", (Holidays.on(Date.civil(2009, 4, 10), [:pl], [:informal])[0] || {})[:name]
965
+
966
+ assert_equal "Wielki Piątek", (Holidays.on(Date.civil(2010, 4, 2), [:pl], [:informal])[0] || {})[:name]
967
+
968
+ assert_equal "Wielki Piątek", (Holidays.on(Date.civil(2011, 4, 22), [:pl], [:informal])[0] || {})[:name]
969
+
970
+ assert_equal "Wielki Piątek", (Holidays.on(Date.civil(2012, 4, 6), [:pl], [:informal])[0] || {})[:name]
971
+
972
+ assert_equal "Wielka Sobota", (Holidays.on(Date.civil(2008, 3, 22), [:pl], [:informal])[0] || {})[:name]
973
+
974
+ assert_equal "Wielka Sobota", (Holidays.on(Date.civil(2009, 4, 11), [:pl], [:informal])[0] || {})[:name]
975
+
976
+ assert_equal "Wielka Sobota", (Holidays.on(Date.civil(2010, 4, 3), [:pl], [:informal])[0] || {})[:name]
977
+
978
+ assert_equal "Wielka Sobota", (Holidays.on(Date.civil(2011, 4, 23), [:pl], [:informal])[0] || {})[:name]
979
+
980
+ assert_equal "Wielka Sobota", (Holidays.on(Date.civil(2012, 4, 7), [:pl], [:informal])[0] || {})[:name]
981
+
982
+ assert_equal "Niedziela Wielkanocna", (Holidays.on(Date.civil(2008, 3, 23), [:pl])[0] || {})[:name]
983
+
984
+ assert_equal "Niedziela Wielkanocna", (Holidays.on(Date.civil(2009, 4, 12), [:pl])[0] || {})[:name]
985
+
986
+ assert_equal "Niedziela Wielkanocna", (Holidays.on(Date.civil(2010, 4, 4), [:pl])[0] || {})[:name]
987
+
988
+ assert_equal "Niedziela Wielkanocna", (Holidays.on(Date.civil(2011, 4, 24), [:pl])[0] || {})[:name]
989
+
990
+ assert_equal "Niedziela Wielkanocna", (Holidays.on(Date.civil(2012, 4, 8), [:pl])[0] || {})[:name]
991
+
992
+ assert_equal "Poniedziałek Wielkanocny (Lany Poniedziałek)", (Holidays.on(Date.civil(2008, 3, 24), [:pl])[0] || {})[:name]
993
+
994
+ assert_equal "Poniedziałek Wielkanocny (Lany Poniedziałek)", (Holidays.on(Date.civil(2009, 4, 13), [:pl])[0] || {})[:name]
995
+
996
+ assert_equal "Poniedziałek Wielkanocny (Lany Poniedziałek)", (Holidays.on(Date.civil(2010, 4, 5), [:pl])[0] || {})[:name]
997
+
998
+ assert_equal "Poniedziałek Wielkanocny (Lany Poniedziałek)", (Holidays.on(Date.civil(2011, 4, 25), [:pl])[0] || {})[:name]
999
+
1000
+ assert_equal "Poniedziałek Wielkanocny (Lany Poniedziałek)", (Holidays.on(Date.civil(2012, 4, 9), [:pl])[0] || {})[:name]
1001
+
1002
+ assert_equal "Zesłanie Ducha Świętego (Zielone Świątki)", (Holidays.on(Date.civil(2008, 5, 11), [:pl])[0] || {})[:name]
1003
+
1004
+ assert_equal "Zesłanie Ducha Świętego (Zielone Świątki)", (Holidays.on(Date.civil(2009, 5, 31), [:pl])[0] || {})[:name]
1005
+
1006
+ assert_equal "Zesłanie Ducha Świętego (Zielone Świątki)", (Holidays.on(Date.civil(2010, 5, 23), [:pl])[0] || {})[:name]
1007
+
1008
+ assert_equal "Zesłanie Ducha Świętego (Zielone Świątki)", (Holidays.on(Date.civil(2011, 6, 12), [:pl])[0] || {})[:name]
1009
+
1010
+ assert_equal "Zesłanie Ducha Świętego (Zielone Świątki)", (Holidays.on(Date.civil(2012, 5, 27), [:pl])[0] || {})[:name]
1011
+
1012
+ assert_equal "Uroczystość Najświętszego Ciała i Krwi Pańskiej (Boże Ciało)", (Holidays.on(Date.civil(2008, 5, 22), [:pl])[0] || {})[:name]
1013
+
1014
+ assert_equal "Uroczystość Najświętszego Ciała i Krwi Pańskiej (Boże Ciało)", (Holidays.on(Date.civil(2009, 6, 11), [:pl])[0] || {})[:name]
1015
+
1016
+ assert_equal "Uroczystość Najświętszego Ciała i Krwi Pańskiej (Boże Ciało)", (Holidays.on(Date.civil(2010, 6, 3), [:pl])[0] || {})[:name]
1017
+
1018
+ assert_equal "Uroczystość Najświętszego Ciała i Krwi Pańskiej (Boże Ciało)", (Holidays.on(Date.civil(2011, 6, 23), [:pl])[0] || {})[:name]
1019
+
1020
+ assert_equal "Uroczystość Najświętszego Ciała i Krwi Pańskiej (Boże Ciało)", (Holidays.on(Date.civil(2012, 6, 7), [:pl])[0] || {})[:name]
1021
+
1022
+ assert_equal "Wniebowzięcie Najświętszej Maryi Panny", (Holidays.on(Date.civil(2011, 8, 15), [:pl])[0] || {})[:name]
1023
+
1024
+ assert_equal "Ano Novo", (Holidays.on(Date.civil(2008, 1, 1), [:pt], [:informal])[0] || {})[:name]
1025
+
1026
+ assert_equal "Carnaval", (Holidays.on(Date.civil(2005, 2, 8), [:pt], [:informal])[0] || {})[:name]
1027
+
1028
+ assert_equal "Carnaval", (Holidays.on(Date.civil(2006, 2, 28), [:pt], [:informal])[0] || {})[:name]
1029
+
1030
+ assert_equal "Carnaval", (Holidays.on(Date.civil(2007, 2, 20), [:pt], [:informal])[0] || {})[:name]
1031
+
1032
+ assert_equal "Carnaval", (Holidays.on(Date.civil(2008, 2, 5), [:pt], [:informal])[0] || {})[:name]
1033
+
1034
+ assert_equal "Sexta-feira Santa", (Holidays.on(Date.civil(2008, 3, 21), [:pt], [:informal])[0] || {})[:name]
1035
+
1036
+ assert_equal "Páscoa", (Holidays.on(Date.civil(2008, 3, 23), [:pt], [:informal])[0] || {})[:name]
1037
+
1038
+ assert_equal "Páscoa", (Holidays.on(Date.civil(2016, 3, 27), [:pt], [:informal])[0] || {})[:name]
1039
+
1040
+ assert_equal "Dia da Liberdade", (Holidays.on(Date.civil(2008, 4, 25), [:pt], [:informal])[0] || {})[:name]
1041
+
1042
+ assert_equal "Dia do Trabalhador", (Holidays.on(Date.civil(2008, 5, 1), [:pt], [:informal])[0] || {})[:name]
1043
+
1044
+ assert_equal "Corpo de Deus", (Holidays.on(Date.civil(2016, 5, 26), [:pt], [:informal])[0] || {})[:name]
1045
+
1046
+ assert_equal "Dia de Portugal", (Holidays.on(Date.civil(2008, 6, 10), [:pt], [:informal])[0] || {})[:name]
1047
+
1048
+ assert_equal "Assunção de Nossa Senhora", (Holidays.on(Date.civil(2008, 8, 15), [:pt], [:informal])[0] || {})[:name]
1049
+
1050
+ assert_equal "Dia da República", (Holidays.on(Date.civil(2008, 10, 5), [:pt], [:informal])[0] || {})[:name]
1051
+
1052
+ assert_equal "Dia de Todos-os-Santos", (Holidays.on(Date.civil(2008, 11, 1), [:pt], [:informal])[0] || {})[:name]
1053
+
1054
+ assert_equal "Restauração da Independência", (Holidays.on(Date.civil(2008, 12, 1), [:pt], [:informal])[0] || {})[:name]
1055
+
1056
+ assert_equal "Imaculada Conceição", (Holidays.on(Date.civil(2008, 12, 8), [:pt], [:informal])[0] || {})[:name]
1057
+
1058
+ assert_equal "Natal", (Holidays.on(Date.civil(2008, 12, 25), [:pt], [:informal])[0] || {})[:name]
1059
+
1060
+ assert_equal "Paștele - duminică", (Holidays.on(Date.civil(1961, 4, 9), [:ro], [:informal])[0] || {})[:name]
1061
+
1062
+ assert_equal "Paștele - luni", (Holidays.on(Date.civil(1961, 4, 10), [:ro], [:informal])[0] || {})[:name]
1063
+
1064
+ assert_equal "Paștele - duminică", (Holidays.on(Date.civil(2013, 5, 5), [:ro], [:informal])[0] || {})[:name]
1065
+
1066
+ assert_equal "Paștele - luni", (Holidays.on(Date.civil(2013, 5, 6), [:ro], [:informal])[0] || {})[:name]
1067
+
1068
+ assert_equal "Paștele - duminică", (Holidays.on(Date.civil(2027, 5, 2), [:ro], [:informal])[0] || {})[:name]
1069
+
1070
+ assert_equal "Paștele - luni", (Holidays.on(Date.civil(2027, 5, 3), [:ro], [:informal])[0] || {})[:name]
1071
+
1072
+ assert_equal "Rusaliile - 51", (Holidays.on(Date.civil(2012, 6, 4), [:ro], [:informal])[0] || {})[:name]
1073
+
1074
+ assert_equal "Rusaliile - 50", (Holidays.on(Date.civil(2013, 6, 23), [:ro], [:informal])[0] || {})[:name]
1075
+
1076
+ assert_equal "Rusaliile - 51", (Holidays.on(Date.civil(2013, 6, 24), [:ro], [:informal])[0] || {})[:name]
1077
+
1078
+ assert_equal "Rusaliile - 50", (Holidays.on(Date.civil(1986, 6, 22), [:ro], [:informal])[0] || {})[:name]
1079
+
1080
+ assert_equal "Rusaliile - 51", (Holidays.on(Date.civil(1986, 6, 23), [:ro], [:informal])[0] || {})[:name]
1081
+
1082
+ assert_equal "Anul nou", (Holidays.on(Date.civil(2009, 1, 1), [:ro], [:informal])[0] || {})[:name]
1083
+
1084
+ assert_equal "Anul nou", (Holidays.on(Date.civil(2014, 1, 2), [:ro], [:informal])[0] || {})[:name]
1085
+
1086
+ assert_equal "Ziua muncii", (Holidays.on(Date.civil(2009, 5, 1), [:ro], [:informal])[0] || {})[:name]
1087
+
1088
+ assert_equal "Adormirea Maicii Domnului", (Holidays.on(Date.civil(2012, 8, 15), [:ro], [:informal])[0] || {})[:name]
1089
+
1090
+ assert_equal "Sfântul Apostol Andrei", (Holidays.on(Date.civil(2013, 11, 30), [:ro], [:informal])[0] || {})[:name]
1091
+
1092
+ assert_equal "Ziua Națională", (Holidays.on(Date.civil(2013, 12, 1), [:ro], [:informal])[0] || {})[:name]
1093
+
1094
+ assert_equal "Sărbătoarea Nașterii Domnului", (Holidays.on(Date.civil(2013, 12, 25), [:ro], [:informal])[0] || {})[:name]
1095
+
1096
+ assert_equal "Sărbătoarea Nașterii Domnului", (Holidays.on(Date.civil(2013, 12, 26), [:ro], [:informal])[0] || {})[:name]
1097
+
1098
+ assert_nil (Holidays.on(Date.civil(2013, 7, 23), [:ro])[0] || {})[:name]
1099
+
1100
+ assert_equal "Nový rok", (Holidays.on(Date.civil(2013, 1, 1), [:sk], [:informal])[0] || {})[:name]
1101
+
1102
+ assert_equal "Zjavenie Pána (Traja králi)", (Holidays.on(Date.civil(2013, 1, 6), [:sk], [:informal])[0] || {})[:name]
1103
+
1104
+ assert_equal "Veľký piatok", (Holidays.on(Date.civil(2013, 3, 29), [:sk], [:informal])[0] || {})[:name]
1105
+
1106
+ assert_equal "Veľkonočný pondelok", (Holidays.on(Date.civil(2013, 4, 1), [:sk], [:informal])[0] || {})[:name]
1107
+
1108
+ assert_equal "Sviatok práce", (Holidays.on(Date.civil(2013, 5, 1), [:sk], [:informal])[0] || {})[:name]
1109
+
1110
+ assert_equal "Deň víťazstva nad fašizmom", (Holidays.on(Date.civil(2013, 5, 8), [:sk], [:informal])[0] || {})[:name]
1111
+
1112
+ assert_equal "Sviatok svätého Cyrila a svätého Metoda", (Holidays.on(Date.civil(2013, 7, 5), [:sk], [:informal])[0] || {})[:name]
1113
+
1114
+ assert_equal "Výročie Slovenského národného povstania", (Holidays.on(Date.civil(2013, 8, 29), [:sk], [:informal])[0] || {})[:name]
1115
+
1116
+ assert_equal "Deň Ústavy Slovenskej republiky", (Holidays.on(Date.civil(2013, 9, 1), [:sk], [:informal])[0] || {})[:name]
1117
+
1118
+ assert_equal "Sedembolestná Panna Mária", (Holidays.on(Date.civil(2013, 9, 15), [:sk], [:informal])[0] || {})[:name]
1119
+
1120
+ assert_equal "Sviatok všetkých svätých", (Holidays.on(Date.civil(2013, 11, 1), [:sk], [:informal])[0] || {})[:name]
1121
+
1122
+ assert_equal "Deň boja za slobodu a demokraciu", (Holidays.on(Date.civil(2013, 11, 17), [:sk], [:informal])[0] || {})[:name]
1123
+
1124
+ assert_equal "Štedrý deň", (Holidays.on(Date.civil(2013, 12, 24), [:sk], [:informal])[0] || {})[:name]
1125
+
1126
+ assert_equal "1. sviatok vianočný", (Holidays.on(Date.civil(2013, 12, 25), [:sk], [:informal])[0] || {})[:name]
1127
+
1128
+ assert_equal "2. sviatok vianočný", (Holidays.on(Date.civil(2013, 12, 26), [:sk], [:informal])[0] || {})[:name]
1129
+
1130
+ assert_equal "velikonočna nedelja", (Holidays.on(Date.civil(2015, 4, 5), [:si])[0] || {})[:name]
1131
+
1132
+ assert_equal "velikonočna nedelja", (Holidays.on(Date.civil(2016, 3, 27), [:si])[0] || {})[:name]
1133
+
1134
+ assert_equal "velikonočni ponedeljek", (Holidays.on(Date.civil(2015, 4, 6), [:si])[0] || {})[:name]
1135
+
1136
+ assert_equal "velikonočni ponedeljek", (Holidays.on(Date.civil(2016, 3, 28), [:si])[0] || {})[:name]
1137
+
1138
+ assert_equal "binkošti", (Holidays.on(Date.civil(2015, 5, 24), [:si])[0] || {})[:name]
1139
+
1140
+ assert_equal "binkošti", (Holidays.on(Date.civil(2016, 5, 15), [:si])[0] || {})[:name]
1141
+
1142
+ assert_equal "novo leto", (Holidays.on(Date.civil(2014, 1, 1), [:si], [:informal])[0] || {})[:name]
1143
+ assert_equal "novo leto", (Holidays.on(Date.civil(2015, 1, 1), [:si], [:informal])[0] || {})[:name]
1144
+ assert_equal "novo leto", (Holidays.on(Date.civil(2016, 1, 1), [:si], [:informal])[0] || {})[:name]
1145
+ assert_equal "novo leto", (Holidays.on(Date.civil(2017, 1, 1), [:si], [:informal])[0] || {})[:name]
1146
+ assert_equal "novo leto", (Holidays.on(Date.civil(2018, 1, 1), [:si], [:informal])[0] || {})[:name]
1147
+ assert_equal "novo leto", (Holidays.on(Date.civil(2019, 1, 1), [:si], [:informal])[0] || {})[:name]
1148
+ assert_equal "novo leto", (Holidays.on(Date.civil(2020, 1, 1), [:si], [:informal])[0] || {})[:name]
1149
+
1150
+ assert_equal "Prešernov dan, slovenski kulturni praznik", (Holidays.on(Date.civil(2014, 2, 8), [:si], [:informal])[0] || {})[:name]
1151
+ assert_equal "Prešernov dan, slovenski kulturni praznik", (Holidays.on(Date.civil(2015, 2, 8), [:si], [:informal])[0] || {})[:name]
1152
+ assert_equal "Prešernov dan, slovenski kulturni praznik", (Holidays.on(Date.civil(2016, 2, 8), [:si], [:informal])[0] || {})[:name]
1153
+ assert_equal "Prešernov dan, slovenski kulturni praznik", (Holidays.on(Date.civil(2017, 2, 8), [:si], [:informal])[0] || {})[:name]
1154
+ assert_equal "Prešernov dan, slovenski kulturni praznik", (Holidays.on(Date.civil(2018, 2, 8), [:si], [:informal])[0] || {})[:name]
1155
+ assert_equal "Prešernov dan, slovenski kulturni praznik", (Holidays.on(Date.civil(2019, 2, 8), [:si], [:informal])[0] || {})[:name]
1156
+ assert_equal "Prešernov dan, slovenski kulturni praznik", (Holidays.on(Date.civil(2020, 2, 8), [:si], [:informal])[0] || {})[:name]
1157
+
1158
+ assert_equal "dan upora proti okupatorju", (Holidays.on(Date.civil(2014, 4, 27), [:si], [:informal])[0] || {})[:name]
1159
+ assert_equal "dan upora proti okupatorju", (Holidays.on(Date.civil(2015, 4, 27), [:si], [:informal])[0] || {})[:name]
1160
+ assert_equal "dan upora proti okupatorju", (Holidays.on(Date.civil(2016, 4, 27), [:si], [:informal])[0] || {})[:name]
1161
+ assert_equal "dan upora proti okupatorju", (Holidays.on(Date.civil(2017, 4, 27), [:si], [:informal])[0] || {})[:name]
1162
+ assert_equal "dan upora proti okupatorju", (Holidays.on(Date.civil(2018, 4, 27), [:si], [:informal])[0] || {})[:name]
1163
+ assert_equal "dan upora proti okupatorju", (Holidays.on(Date.civil(2019, 4, 27), [:si], [:informal])[0] || {})[:name]
1164
+ assert_equal "dan upora proti okupatorju", (Holidays.on(Date.civil(2020, 4, 27), [:si], [:informal])[0] || {})[:name]
1165
+
1166
+ assert_equal "praznik dela", (Holidays.on(Date.civil(2014, 5, 1), [:si], [:informal])[0] || {})[:name]
1167
+ assert_equal "praznik dela", (Holidays.on(Date.civil(2015, 5, 1), [:si], [:informal])[0] || {})[:name]
1168
+ assert_equal "praznik dela", (Holidays.on(Date.civil(2016, 5, 1), [:si], [:informal])[0] || {})[:name]
1169
+ assert_equal "praznik dela", (Holidays.on(Date.civil(2017, 5, 1), [:si], [:informal])[0] || {})[:name]
1170
+ assert_equal "praznik dela", (Holidays.on(Date.civil(2018, 5, 1), [:si], [:informal])[0] || {})[:name]
1171
+ assert_equal "praznik dela", (Holidays.on(Date.civil(2019, 5, 1), [:si], [:informal])[0] || {})[:name]
1172
+ assert_equal "praznik dela", (Holidays.on(Date.civil(2020, 5, 1), [:si], [:informal])[0] || {})[:name]
1173
+
1174
+ assert_equal "praznik dela", (Holidays.on(Date.civil(2014, 5, 2), [:si], [:informal])[0] || {})[:name]
1175
+ assert_equal "praznik dela", (Holidays.on(Date.civil(2015, 5, 2), [:si], [:informal])[0] || {})[:name]
1176
+ assert_equal "praznik dela", (Holidays.on(Date.civil(2016, 5, 2), [:si], [:informal])[0] || {})[:name]
1177
+ assert_equal "praznik dela", (Holidays.on(Date.civil(2017, 5, 2), [:si], [:informal])[0] || {})[:name]
1178
+ assert_equal "praznik dela", (Holidays.on(Date.civil(2018, 5, 2), [:si], [:informal])[0] || {})[:name]
1179
+ assert_equal "praznik dela", (Holidays.on(Date.civil(2019, 5, 2), [:si], [:informal])[0] || {})[:name]
1180
+ assert_equal "praznik dela", (Holidays.on(Date.civil(2020, 5, 2), [:si], [:informal])[0] || {})[:name]
1181
+
1182
+ assert_equal "dan državnosti", (Holidays.on(Date.civil(2014, 6, 25), [:si], [:informal])[0] || {})[:name]
1183
+ assert_equal "dan državnosti", (Holidays.on(Date.civil(2015, 6, 25), [:si], [:informal])[0] || {})[:name]
1184
+ assert_equal "dan državnosti", (Holidays.on(Date.civil(2016, 6, 25), [:si], [:informal])[0] || {})[:name]
1185
+ assert_equal "dan državnosti", (Holidays.on(Date.civil(2017, 6, 25), [:si], [:informal])[0] || {})[:name]
1186
+ assert_equal "dan državnosti", (Holidays.on(Date.civil(2018, 6, 25), [:si], [:informal])[0] || {})[:name]
1187
+ assert_equal "dan državnosti", (Holidays.on(Date.civil(2019, 6, 25), [:si], [:informal])[0] || {})[:name]
1188
+ assert_equal "dan državnosti", (Holidays.on(Date.civil(2020, 6, 25), [:si], [:informal])[0] || {})[:name]
1189
+
1190
+ assert_equal "Marijino vnebovzetje", (Holidays.on(Date.civil(2014, 8, 15), [:si], [:informal])[0] || {})[:name]
1191
+ assert_equal "Marijino vnebovzetje", (Holidays.on(Date.civil(2015, 8, 15), [:si], [:informal])[0] || {})[:name]
1192
+ assert_equal "Marijino vnebovzetje", (Holidays.on(Date.civil(2016, 8, 15), [:si], [:informal])[0] || {})[:name]
1193
+ assert_equal "Marijino vnebovzetje", (Holidays.on(Date.civil(2017, 8, 15), [:si], [:informal])[0] || {})[:name]
1194
+ assert_equal "Marijino vnebovzetje", (Holidays.on(Date.civil(2018, 8, 15), [:si], [:informal])[0] || {})[:name]
1195
+ assert_equal "Marijino vnebovzetje", (Holidays.on(Date.civil(2019, 8, 15), [:si], [:informal])[0] || {})[:name]
1196
+ assert_equal "Marijino vnebovzetje", (Holidays.on(Date.civil(2020, 8, 15), [:si], [:informal])[0] || {})[:name]
1197
+
1198
+ assert_equal "dan reformacije", (Holidays.on(Date.civil(2014, 10, 31), [:si], [:informal])[0] || {})[:name]
1199
+ assert_equal "dan reformacije", (Holidays.on(Date.civil(2015, 10, 31), [:si], [:informal])[0] || {})[:name]
1200
+ assert_equal "dan reformacije", (Holidays.on(Date.civil(2016, 10, 31), [:si], [:informal])[0] || {})[:name]
1201
+ assert_equal "dan reformacije", (Holidays.on(Date.civil(2017, 10, 31), [:si], [:informal])[0] || {})[:name]
1202
+ assert_equal "dan reformacije", (Holidays.on(Date.civil(2018, 10, 31), [:si], [:informal])[0] || {})[:name]
1203
+ assert_equal "dan reformacije", (Holidays.on(Date.civil(2019, 10, 31), [:si], [:informal])[0] || {})[:name]
1204
+ assert_equal "dan reformacije", (Holidays.on(Date.civil(2020, 10, 31), [:si], [:informal])[0] || {})[:name]
1205
+
1206
+ assert_equal "dan spomina na mrtve", (Holidays.on(Date.civil(2014, 11, 1), [:si], [:informal])[0] || {})[:name]
1207
+ assert_equal "dan spomina na mrtve", (Holidays.on(Date.civil(2015, 11, 1), [:si], [:informal])[0] || {})[:name]
1208
+ assert_equal "dan spomina na mrtve", (Holidays.on(Date.civil(2016, 11, 1), [:si], [:informal])[0] || {})[:name]
1209
+ assert_equal "dan spomina na mrtve", (Holidays.on(Date.civil(2017, 11, 1), [:si], [:informal])[0] || {})[:name]
1210
+ assert_equal "dan spomina na mrtve", (Holidays.on(Date.civil(2018, 11, 1), [:si], [:informal])[0] || {})[:name]
1211
+ assert_equal "dan spomina na mrtve", (Holidays.on(Date.civil(2019, 11, 1), [:si], [:informal])[0] || {})[:name]
1212
+ assert_equal "dan spomina na mrtve", (Holidays.on(Date.civil(2020, 11, 1), [:si], [:informal])[0] || {})[:name]
1213
+
1214
+ assert_equal "božič", (Holidays.on(Date.civil(2014, 12, 25), [:si], [:informal])[0] || {})[:name]
1215
+ assert_equal "božič", (Holidays.on(Date.civil(2015, 12, 25), [:si], [:informal])[0] || {})[:name]
1216
+ assert_equal "božič", (Holidays.on(Date.civil(2016, 12, 25), [:si], [:informal])[0] || {})[:name]
1217
+ assert_equal "božič", (Holidays.on(Date.civil(2017, 12, 25), [:si], [:informal])[0] || {})[:name]
1218
+ assert_equal "božič", (Holidays.on(Date.civil(2018, 12, 25), [:si], [:informal])[0] || {})[:name]
1219
+ assert_equal "božič", (Holidays.on(Date.civil(2019, 12, 25), [:si], [:informal])[0] || {})[:name]
1220
+ assert_equal "božič", (Holidays.on(Date.civil(2020, 12, 25), [:si], [:informal])[0] || {})[:name]
1221
+
1222
+ assert_equal "dan samostojnosti in enotnosti", (Holidays.on(Date.civil(2008, 12, 26), [:si], [:informal])[0] || {})[:name]
1223
+
1224
+ assert_equal "New Year's Day", (Holidays.on(Date.civil(2015, 1, 1), [:bg_en])[0] || {})[:name]
1225
+
1226
+ assert_equal "Liberation Day", (Holidays.on(Date.civil(2015, 3, 3), [:bg_en])[0] || {})[:name]
1227
+
1228
+ assert_equal "Good Friday", (Holidays.on(Date.civil(2015, 3, 28), [:bg_en])[0] || {})[:name]
1229
+
1230
+ assert_equal "Holy Saturday", (Holidays.on(Date.civil(2015, 3, 29), [:bg_en])[0] || {})[:name]
1231
+
1232
+ assert_equal "Easter Sunday", (Holidays.on(Date.civil(2015, 3, 30), [:bg_en])[0] || {})[:name]
1233
+
1234
+ assert_equal "Easter Monday", (Holidays.on(Date.civil(2015, 3, 31), [:bg_en])[0] || {})[:name]
1235
+
1236
+ assert_equal "Labour Day", (Holidays.on(Date.civil(2015, 5, 1), [:bg_en])[0] || {})[:name]
1237
+
1238
+ assert_equal "St. George's Day", (Holidays.on(Date.civil(2015, 5, 6), [:bg_en])[0] || {})[:name]
1239
+
1240
+ assert_equal "Slavic Literacy Day", (Holidays.on(Date.civil(2015, 5, 24), [:bg_en])[0] || {})[:name]
1241
+
1242
+ assert_equal "Unification Day", (Holidays.on(Date.civil(2015, 9, 6), [:bg_en])[0] || {})[:name]
1243
+
1244
+ assert_equal "The Independence Day", (Holidays.on(Date.civil(2015, 9, 22), [:bg_en])[0] || {})[:name]
1245
+
1246
+ assert_equal "Revival Leader's Day", (Holidays.on(Date.civil(2015, 11, 1), [:bg_en])[0] || {})[:name]
1247
+
1248
+ assert_equal "Christmas Eve", (Holidays.on(Date.civil(2015, 12, 24), [:bg_en])[0] || {})[:name]
1249
+
1250
+ assert_equal "Christmas", (Holidays.on(Date.civil(2015, 12, 25), [:bg_en])[0] || {})[:name]
1251
+
1252
+ assert_equal "Christmas", (Holidays.on(Date.civil(2015, 12, 26), [:bg_en])[0] || {})[:name]
814
1253
 
815
1254
  end
816
1255
  end