25 lines
865 B
Ruby
25 lines
865 B
Ruby
# encoding: utf-8
|
|
require File.expand_path(File.dirname(__FILE__)) + '/../test_helper'
|
|
|
|
# This file is generated by the Ruby Holiday gem.
|
|
#
|
|
# Definitions loaded: data/nl.yaml
|
|
class NlDefinitionTests < Test::Unit::TestCase # :nodoc:
|
|
|
|
def test_nl
|
|
{Date.civil(2008,1,1) => 'Nieuwjaar',
|
|
Date.civil(2008,3,21) => 'Goede Vrijdag',
|
|
Date.civil(2008,3,23) => 'Pasen',
|
|
Date.civil(2008,3,24) => 'Pasen',
|
|
Date.civil(2008,4,30) => 'Koninginnedag',
|
|
Date.civil(2008,5,1) => 'Hemelvaartsdag', # Ascension, Easter+39
|
|
Date.civil(2008,5,5) => 'Bevrijdingsdag',
|
|
Date.civil(2008,5,11) => 'Pinksteren', # Pentecost, Easter+49
|
|
Date.civil(2008,5,12) => 'Pinksteren', # Pentecost, Easter+50
|
|
Date.civil(2008,12,25) => 'Kerstmis',
|
|
Date.civil(2008,12,26) => 'Kerstmis'}.each do |date, name|
|
|
assert_equal name, (Holidays.on(date, :nl, :informal)[0] || {})[:name]
|
|
end
|
|
end
|
|
end
|