Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions src/main/resources/jfairy_zh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,34 @@ lastNames: {
male: [赵, 钱, 孙, 李, 周, 吴, 郑, 王, 冯, 陈, 楚, 卫, 苏, 蒋, 沈, 韩, 杨, 张, 黄, 徐, 刘],
female: [赵, 钱, 孙, 李, 周, 吴, 郑, 王, 冯, 陈, 楚, 卫, 苏, 蒋, 沈, 韩, 杨, 张, 黄, 徐, 刘]
}
personalEmails: [gmail.com, 163.com, 126.com, qq.com, sina.com, sohu.com]
# Enhanced personal email domains with major Chinese providers
personalEmails: [gmail.com, 163.com, 126.com, qq.com, sina.com, sohu.com, aliyun.com, outlook.com, hotmail.com, 139.com, 189.cn]
companyNames: [数说故事, 网易之, 腾企鹅, 千度, 京西, 后海金融, 互动派, 塔布数据, 阿狸巴巴, 图匠]
companySuffixes: [科技有限公司, 股份有限公司, 集团, 有限公司, 金融投资有限公司]
companyEmails: [info, contact, company, office, org, com]

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

telephone_number_formats: ['###-####-####', '###########', '########']
# Enhanced telephone number formats
# Mobile phone prefixes for major Chinese carriers:
# - China Mobile: 134-139, 150-152, 157-159, 182-184, 187-188, 195, 198
# - China Unicom: 130-132, 155-156, 185-186, 175-176, 196
# - China Telecom: 133, 153, 173, 177, 180-181, 189, 191, 193, 199
# - Virtual operators: 170, 171
# Landline formats with city codes:
# - Beijing: 010, Shanghai: 021, Guangzhou: 020, Shenzhen: 0755
telephone_number_formats: [
'130########', '131########', '132########', '133########', '134########',
'135########', '136########', '137########', '138########', '139########',
'150########', '151########', '152########', '153########', '155########',
'156########', '157########', '158########', '159########', '170########',
'171########', '173########', '175########', '176########', '177########',
'178########', '180########', '181########', '182########', '183########',
'184########', '185########', '186########', '187########', '188########',
'189########', '191########', '193########', '195########', '196########',
'198########', '199########',
'010-#######', '021-#######', '020-#######', '0755-#######'
]

postal_code: ['######']

Expand Down
4 changes: 2 additions & 2 deletions src/test/groovy/com/devskiller/jfairy/FairyZhSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ class FairyZhSpec extends Specification {
when:
Person person = fairy.person()
then:
person.address.addressLine1 == '南京市中山大道122号 101房'
person.address.addressLine1 == '上海市外环西路124号'
}

def "Should create Chinese city"() {
when:
Person person = fairy.person()
then:
person.address.city == '南京'
person.address.city == '上海'
}

/********************
Expand Down
Loading