Sha256: 9cc5f76f95b003b3e815905c24e5f3e718a8a0f3de080f31d4445a88d53b0c44

Contents?: true

Size: 699 Bytes

Versions: 3

Compression:

Stored size: 699 Bytes

Contents

# frozen_string_literal: true

require 'helper'

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

  assert_methods_are_deterministic(
    FFaker::AddressNL,
    :city, :province, :street_address, :street_name, :zip_code
  )

  def setup
    @tester = FFaker::AddressNL
  end

  def test_city
    assert_match(/[ a-z]+/, @tester.city)
  end

  def test_province
    assert_match(/[ a-z]/, @tester.province)
  end

  def test_zip_code
    assert_match(/\A[1-9]\d{3} [A-RT-Z][A-Z]\z/, @tester.zip_code)
  end

  def test_street_name
    assert_match(/[ a-z]+/, @tester.street_name)
  end

  def test_street_address
    assert_match(/[ a-z]+/, @tester.street_address)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ffaker-2.18.0 test/test_address_nl.rb
ffaker-2.17.0 test/test_address_nl.rb
ffaker-2.16.0 test/test_address_nl.rb