Sha256: f2eb431674de369832b8906e960094c6406ad87fe087376953b3e8074c043ec1
Contents?: true
Size: 712 Bytes
Versions: 1
Compression:
Stored size: 712 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestAddressNL < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFakerTW::AddressNL, :city, :province, :street_address, :street_name, :zip_code ) def setup @tester = FFakerTW::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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffakerTW-0.1.0 | test/test_address_nl.rb |