Skip to content

Commit

Permalink
词库准确性维护,单元测试增加
Browse files Browse the repository at this point in the history
  • Loading branch information
yicheng committed Apr 11, 2016
1 parent a89aa81 commit b6db19c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/vendor
tmp*
.php_cs.cache
index.php
3 changes: 3 additions & 0 deletions src/data/dict.php
Original file line number Diff line number Diff line change
Expand Up @@ -52175,6 +52175,7 @@
"曾都": " zeng1 du1 ",
"曾都区": " zeng1 du1 qu1 ",
"曾金燕": " zeng1 jin1 yan4 ",
"姓曾": " xing4 zeng1 ",
"替": " ti4 ",
"替代": " ti4 dai4 ",
"替代品": " ti4 dai4 pin3 ",
Expand Down Expand Up @@ -73770,6 +73771,8 @@
"种族灭绝": " zhong3 zu2 mie4 jue2 ",
"种族隔离": " zhong3 zu2 ge2 li2 ",
"种植": " zhong4 zhi2 ",
"种瓜": " zhong4 gua1 ",
"种豆": " zhong4 dou4 ",
"种植业": " zhong4 zhi2 ye4 ",
"种植体": " zhong4 zhi2 ti3 ",
"种植园": " zhong4 zhi2 yuan2 ",
Expand Down
4 changes: 4 additions & 0 deletions tests/FeatureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ public function testPolyphone()
// 厦
$this->assertEquals('dà shà', Pinyin::trans('大厦'));
$this->assertEquals('xià mén', Pinyin::trans('厦门'));

// 曾
$this->assertEquals('céng jīng', Pinyin::trans('曾经'));
$this->assertEquals('xìng zēng', Pinyin::trans('姓曾'));
}

/**
Expand Down

0 comments on commit b6db19c

Please sign in to comment.