Sha256: a508769409063a3c974ac3b98135eb6abf0915f95a987940af63f25c51d053cd

Contents?: true

Size: 399 Bytes

Versions: 7

Compression:

Stored size: 399 Bytes

Contents

# frozen_string_literal: true

require '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

7 entries across 7 versions & 1 rubygems

Version Path
ffaker-2.18.0 test/test_address_ch.rb
ffaker-2.17.0 test/test_address_ch.rb
ffaker-2.16.0 test/test_address_ch.rb
ffaker-2.15.0 test/test_address_ch.rb
ffaker-2.14.0 test/test_address_ch.rb
ffaker-2.13.0 test/test_address_ch.rb
ffaker-2.12.0 test/test_address_ch.rb