Skip to content

Commit e466e48

Browse files
authored
Merge pull request SkillPanel#166 from huangq-dev/feat/enhance-zh-cn-data
Feat/enhance zh cn data
2 parents 3123ff4 + 4aa6a24 commit e466e48

2 files changed

Lines changed: 24 additions & 4 deletions

File tree

src/main/resources/jfairy_zh.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,34 @@ lastNames: {
88
male: [赵, 钱, 孙, 李, 周, 吴, 郑, 王, 冯, 陈, 楚, 卫, 苏, 蒋, 沈, 韩, 杨, 张, 黄, 徐, 刘],
99
female: [赵, 钱, 孙, 李, 周, 吴, 郑, 王, 冯, 陈, 楚, 卫, 苏, 蒋, 沈, 韩, 杨, 张, 黄, 徐, 刘]
1010
}
11-
personalEmails: [gmail.com, 163.com, 126.com, qq.com, sina.com, sohu.com]
11+
# Enhanced personal email domains with major Chinese providers
12+
personalEmails: [gmail.com, 163.com, 126.com, qq.com, sina.com, sohu.com, aliyun.com, outlook.com, hotmail.com, 139.com, 189.cn]
1213
companyNames: [数说故事, 网易之, 腾企鹅, 千度, 京西, 后海金融, 互动派, 塔布数据, 阿狸巴巴, 图匠]
1314
companySuffixes: [科技有限公司, 股份有限公司, 集团, 有限公司, 金融投资有限公司]
1415
companyEmails: [info, contact, company, office, org, com]
1516

1617
text: 我们 你好 工资 赚钱 是 非常 魅力 美丽 运动 自由 风雅 要求 感情 代码 研发 神奇 动物 魔法 忍术 你们 的 手机 小米 苹果 猫 狗 相信 很多 一样 梦想 随身 携带 操作 系统 无论 哪里 只要 电脑 可以 随时 运行 自己 配置 博文 一步步 如何 驱动 加载 想象 一个 场景 也许 使用 设置
1718

18-
telephone_number_formats: ['###-####-####', '###########', '########']
19+
# Enhanced telephone number formats
20+
# Mobile phone prefixes for major Chinese carriers:
21+
# - China Mobile: 134-139, 150-152, 157-159, 182-184, 187-188, 195, 198
22+
# - China Unicom: 130-132, 155-156, 185-186, 175-176, 196
23+
# - China Telecom: 133, 153, 173, 177, 180-181, 189, 191, 193, 199
24+
# - Virtual operators: 170, 171
25+
# Landline formats with city codes:
26+
# - Beijing: 010, Shanghai: 021, Guangzhou: 020, Shenzhen: 0755
27+
telephone_number_formats: [
28+
'130########', '131########', '132########', '133########', '134########',
29+
'135########', '136########', '137########', '138########', '139########',
30+
'150########', '151########', '152########', '153########', '155########',
31+
'156########', '157########', '158########', '159########', '170########',
32+
'171########', '173########', '175########', '176########', '177########',
33+
'178########', '180########', '181########', '182########', '183########',
34+
'184########', '185########', '186########', '187########', '188########',
35+
'189########', '191########', '193########', '195########', '196########',
36+
'198########', '199########',
37+
'010-#######', '021-#######', '020-#######', '0755-#######'
38+
]
1939

2040
postal_code: ['######']
2141

src/test/groovy/com/devskiller/jfairy/FairyZhSpec.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ class FairyZhSpec extends Specification {
4343
when:
4444
Person person = fairy.person()
4545
then:
46-
person.address.addressLine1 == '南京市中山大道122号 101房'
46+
person.address.addressLine1 == '上海市外环西路124号'
4747
}
4848

4949
def "Should create Chinese city"() {
5050
when:
5151
Person person = fairy.person()
5252
then:
53-
person.address.city == '南京'
53+
person.address.city == '上海'
5454
}
5555

5656
/********************

0 commit comments

Comments
 (0)