Sha256: f38be444449669745bf222581dd88a61fc6ff6fd0b739e7ae4a6feaf23351fb9
Contents?: true
Size: 1.48 KB
Versions: 1
Compression:
Stored size: 1.48 KB
Contents
# frozen_string_literal: true require_relative 'helper' class TestAddressININ < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFakerTW::AddressIN, :country_code, :country, :pincode, :state_abbr, :state_and_union_territory_abbr, :state_and_union_territory, :state, :time_zone, :union_territory_abbr, :union_territory ) def test_in_state assert_match(/\A[A-Z][ A-Za-z]*\z/, FFakerTW::AddressIN.state) end def test_in_state_abbr assert_match(/\A[A-Z]{2}\z/, FFakerTW::AddressIN.state_abbr) end def test_in_union_territory assert_match(/\A[A-Z][ A-Za-z]*\z/, FFakerTW::AddressIN.union_territory) end def test_in_union_territory_abbr assert_match(/\A[A-Z]{2}\z/, FFakerTW::AddressIN.union_territory_abbr) end def test_in_state_and_union_territory assert_match(/\A[A-Z][ A-Za-z]*\z/, FFakerTW::AddressIN.state_and_union_territory) end def test_in_state_and_union_territory_abbr assert_match(/\A[A-Z]{2}\z/, FFakerTW::AddressIN.state_and_union_territory_abbr) end def test_pincode assert_match(/[0-9]{6}/, FFakerTW::AddressIN.pincode) end def test_zip_code assert_match(/[0-9]{6}/, FFakerTW::AddressIN.pincode) end def test_in_country assert_equal 'India', FFakerTW::AddressIN.country end def test_in_country_code assert_equal 'IN', FFakerTW::AddressIN.country_code end def test_in_time_zone assert_equal 'Asia/Kolkata', FFakerTW::AddressIN.time_zone end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffakerTW-0.1.0 | test/test_address_in.rb |