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

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

  def test_rs_la
    assert_equal "Nova Godina", (Holidays.on(Date.civil(2017, 1, 1), [:rs_la])[0] || {})[:name]
assert_equal "Nova Godina", (Holidays.on(Date.civil(2017, 1, 2), [:rs_la])[0] || {})[:name]

    assert_equal "Božić", (Holidays.on(Date.civil(2017, 1, 7), [:rs_la])[0] || {})[:name]

    assert_equal "Dan Svetog Save", (Holidays.on(Date.civil(2017, 1, 27), [:rs_la])[0] || {})[:name]

    assert_equal "Dan državnosti Srbije", (Holidays.on(Date.civil(2017, 2, 15), [:rs_la])[0] || {})[:name]
assert_equal "Dan državnosti Srbije", (Holidays.on(Date.civil(2017, 2, 16), [:rs_la])[0] || {})[:name]

    assert_equal "Praznik rada", (Holidays.on(Date.civil(2017, 5, 1), [:rs_la])[0] || {})[:name]
assert_equal "Praznik rada", (Holidays.on(Date.civil(2017, 5, 2), [:rs_la])[0] || {})[:name]

    assert_equal "Dan pobede", (Holidays.on(Date.civil(2017, 5, 9), [:rs_la], [:informal])[0] || {})[:name]

    assert_equal "Vidovdan", (Holidays.on(Date.civil(2017, 6, 28), [:rs_la])[0] || {})[:name]

    assert_equal "Dan primirja", (Holidays.on(Date.civil(2017, 11, 11), [:rs_la])[0] || {})[:name]

    assert_equal "Veliki Petak", (Holidays.on(Date.civil(2017, 4, 14), [:rs_la])[0] || {})[:name]
assert_equal "Veliki Petak", (Holidays.on(Date.civil(2018, 4, 6), [:rs_la])[0] || {})[:name]
assert_equal "Veliki Petak", (Holidays.on(Date.civil(2019, 4, 26), [:rs_la])[0] || {})[:name]

    assert_equal "Velika Subota", (Holidays.on(Date.civil(2017, 4, 15), [:rs_la])[0] || {})[:name]
assert_equal "Velika Subota", (Holidays.on(Date.civil(2018, 4, 7), [:rs_la])[0] || {})[:name]
assert_equal "Velika Subota", (Holidays.on(Date.civil(2019, 4, 27), [:rs_la])[0] || {})[:name]

    assert_equal "Uskrs", (Holidays.on(Date.civil(2017, 4, 16), [:rs_la])[0] || {})[:name]
assert_equal "Uskrs", (Holidays.on(Date.civil(2018, 4, 8), [:rs_la])[0] || {})[:name]
assert_equal "Uskrs", (Holidays.on(Date.civil(2019, 4, 28), [:rs_la])[0] || {})[:name]

    assert_equal "Vaskrsni ponedeljak", (Holidays.on(Date.civil(2017, 4, 17), [:rs_la])[0] || {})[:name]
assert_equal "Vaskrsni ponedeljak", (Holidays.on(Date.civil(2018, 4, 9), [:rs_la])[0] || {})[:name]
assert_equal "Vaskrsni ponedeljak", (Holidays.on(Date.civil(2019, 4, 29), [:rs_la])[0] || {})[:name]

  end
end
