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

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

  def test_nf
    assert_equal "Good Friday", (Holidays.on(Date.civil(2018, 3, 30), [:nf])[0] || {})[:name]
assert_equal "Good Friday", (Holidays.on(Date.civil(2019, 4, 19), [:nf])[0] || {})[:name]
assert_equal "Good Friday", (Holidays.on(Date.civil(2020, 4, 10), [:nf])[0] || {})[:name]

    assert_equal "Easter Monday", (Holidays.on(Date.civil(2018, 4, 2), [:nf])[0] || {})[:name]
assert_equal "Easter Monday", (Holidays.on(Date.civil(2019, 4, 22), [:nf])[0] || {})[:name]
assert_equal "Easter Monday", (Holidays.on(Date.civil(2020, 4, 13), [:nf])[0] || {})[:name]

    assert_equal "Queen's Birthday", (Holidays.on(Date.civil(2018, 6, 11), [:nf])[0] || {})[:name]
assert_equal "Queen's Birthday", (Holidays.on(Date.civil(2019, 6, 10), [:nf])[0] || {})[:name]
assert_equal "Queen's Birthday", (Holidays.on(Date.civil(2020, 6, 15), [:nf])[0] || {})[:name]

    assert_equal "Australia Day", (Holidays.on(Date.civil(2019, 1, 28), [:nf], [:observed])[0] || {})[:name]
assert_equal "Australia Day", (Holidays.on(Date.civil(2020, 1, 27), [:nf], [:observed])[0] || {})[:name]

    assert_equal "Boxing Day", (Holidays.on(Date.civil(2019, 12, 26), [:nf], [:observed])[0] || {})[:name]
assert_equal "Boxing Day", (Holidays.on(Date.civil(2020, 12, 28), [:nf], [:observed])[0] || {})[:name]

  end
end
