Sha256: caff9111e37f64cf1db2372867a36337523adc2456fd12be3ab398805c8432b8

Contents?: true

Size: 414 Bytes

Versions: 1

Compression:

Stored size: 414 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

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

  assert_methods_are_deterministic(FFakerTW::AddressCH, :canton_abbr, :postal_code)

  def test_ch_canton_abbr
    assert_match(/\A[A-Z]{2}\z/, FFakerTW::AddressCH.canton_abbr)
  end

  def test_postal_code
    assert_match(/\A\d{4}\z/, FFakerTW::AddressCH.postal_code)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ffakerTW-0.1.0 test/test_address_ch.rb