Sha256: db0a3af4192fc773cc8a68fb24b9073f48b798537c718910770356712256e565

Contents?: true

Size: 656 Bytes

Versions: 9

Compression:

Stored size: 656 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

class TestLocale < Test::Unit::TestCase
  include DeterministicHelper

  assert_methods_are_deterministic(FFakerTW::Locale, :code, :language)

  def test_code
    assert_match(/./, FFakerTW::Locale.code)
  end

  def test_language
    assert_match(/./, FFakerTW::Locale.language)
  end

  def test_language_with_args
    assert_match('French', FFakerTW::Locale.language('FR'))
    assert_deterministic { FFakerTW::Locale.language('FR') }
  end

  def test_code_with_args
    assert_match('FR', FFakerTW::Locale.code('French'))
    assert_deterministic { FFakerTW::Locale.code('French') }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ffakerTW-1.8.0 test/test_locale.rb
ffakerTW-1.7.0 test/test_locale.rb
ffakerTW-1.6.0 test/test_locale.rb
ffakerTW-1.5.0 test/test_locale.rb
ffakerTW-1.4.0 test/test_locale.rb
ffakerTW-1.3.0 test/test_locale.rb
ffakerTW-1.2.0 test/test_locale.rb
ffakerTW-1.1.0 test/test_locale.rb
ffakerTW-0.1.0 test/test_locale.rb