# encoding: utf-8
require File.expand_path(File.dirname(__FILE__)) + '/../test_helper'

# This file is generated by the Ruby Holiday gem.
#
# Definitions loaded: definitions/ee.yaml
class EeDefinitionTests < Test::Unit::TestCase  # :nodoc:

  def test_ee
    assert_equal "uusaasta", (Holidays.on(Date.civil(2017, 1, 1), [:ee])[0] || {})[:name]

    assert_equal "iseseisvuspäev", (Holidays.on(Date.civil(2017, 2, 24), [:ee])[0] || {})[:name]

    assert_equal "kevadpüha", (Holidays.on(Date.civil(2017, 5, 1), [:ee])[0] || {})[:name]

    assert_equal "võidupüha ja jaanilaupäev", (Holidays.on(Date.civil(2017, 6, 23), [:ee])[0] || {})[:name]

    assert_equal "jaanipäev", (Holidays.on(Date.civil(2017, 6, 24), [:ee])[0] || {})[:name]

    assert_equal "taasiseseisvumispäev", (Holidays.on(Date.civil(2017, 8, 20), [:ee])[0] || {})[:name]

    assert_equal "jõululaupäev", (Holidays.on(Date.civil(2017, 12, 24), [:ee])[0] || {})[:name]

    assert_equal "esimene jõulupüha", (Holidays.on(Date.civil(2017, 12, 25), [:ee])[0] || {})[:name]

    assert_equal "teine jõulupüha", (Holidays.on(Date.civil(2017, 12, 26), [:ee])[0] || {})[:name]

    assert_equal "suur reede", (Holidays.on(Date.civil(2017, 4, 14), [:ee])[0] || {})[:name]
assert_equal "suur reede", (Holidays.on(Date.civil(2018, 3, 30), [:ee])[0] || {})[:name]
assert_equal "suur reede", (Holidays.on(Date.civil(2019, 4, 19), [:ee])[0] || {})[:name]

    assert_equal "ülestõusmispühade 1. püha", (Holidays.on(Date.civil(2017, 4, 16), [:ee])[0] || {})[:name]
assert_equal "ülestõusmispühade 1. püha", (Holidays.on(Date.civil(2018, 4, 1), [:ee])[0] || {})[:name]
assert_equal "ülestõusmispühade 1. püha", (Holidays.on(Date.civil(2019, 4, 21), [:ee])[0] || {})[:name]

    assert_equal "nelipühade 1. püha", (Holidays.on(Date.civil(2017, 6, 4), [:ee])[0] || {})[:name]
assert_equal "nelipühade 1. püha", (Holidays.on(Date.civil(2018, 5, 20), [:ee])[0] || {})[:name]
assert_equal "nelipühade 1. püha", (Holidays.on(Date.civil(2019, 6, 9), [:ee])[0] || {})[:name]

  end
end
