File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -344,11 +344,23 @@ en-PAK:
344344 - Federally Administered Tribal Areas
345345 - Azad Jammu and Kashmir
346346 - Gilgit-Baltistan
347+ state_abbr :
348+ - PK-BA
349+ - PK-KP
350+ - PK-PB
351+ - PK-SD
352+ - PK-IS
353+ - PK-TA
354+ - PK-JK
355+ - PK-GB
356+
347357 default_country :
348358 - Pakistan
349359 - Islamic Republic of Pakistan
350360 default_country_code :
351361 - PK
362+ default_time_zone :
363+ - Asia/Karachi
352364 internet :
353365 domain_suffix :
354366 - pk
@@ -376,3 +388,17 @@ en-PAK:
376388 - " ##########"
377389 - " ### #######"
378390 - 03 ##-#######
391+ cell_phone :
392+ formats :
393+ - " 0311-#######"
394+ - " 0312-#######"
395+ - " 0313-#######"
396+ - " 0314-#######"
397+ - " 0315-#######"
398+ - " 0300-#######"
399+ - " 0301-#######"
400+ - " 0321-#######"
401+ - " 0322-#######"
402+ - " 0345-#######"
403+ - " 0346-#######"
404+ - " 0346-#######"
Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ def teardown
1414
1515 def test_en_pak_methods
1616 assert_kind_of String , Faker ::Address . state
17+ assert_kind_of String , Faker ::Address . state_abbr
1718 assert_kind_of String , Faker ::Address . default_country
19+ assert_kind_of String , Faker ::Address . default_time_zone
1820 assert_kind_of String , Faker ::Address . postcode
1921 assert_match ( /\A (Pakistan|Islamic Republic of Pakistan)\z / , Faker ::Address . default_country )
2022 end
@@ -33,4 +35,10 @@ def test_en_pak_name_methods
3335 assert_kind_of String , Faker ::Name . last_name
3436 assert_kind_of String , Faker ::Name . name_with_middle
3537 end
38+
39+ def test_en_pak_cell_phone_is_valid
40+ mobile = Faker ::PhoneNumber . cell_phone
41+
42+ assert_match ( /03\d {2}-\d {7}/ , mobile )
43+ end
3644end
You can’t perform that action at this time.
0 commit comments