Sha256: 1f68f912c8062ca549a437961915bf67452e2f50020b9e6072f04eee30bef8a1

Contents?: true

Size: 408 Bytes

Versions: 5

Compression:

Stored size: 408 Bytes

Contents

# frozen_string_literal: true

require_relative 'helper'

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

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

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ffaker-2.23.0 test/test_address_ch.rb
ffaker-2.22.0 test/test_address_ch.rb
ffaker-2.21.0 test/test_address_ch.rb
ffaker-2.20.0 test/test_address_ch.rb
ffaker-2.19.0 test/test_address_ch.rb