Skip to content

Commit

Permalink
fix: 补充案例 #207
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Aug 1, 2024
1 parent 434648a commit 0e4aea8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/PinyinTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,13 @@ public function test_issues()

// https://github.com/overtrue/pinyin/issues/207
$this->assertPinyin(['zhuó'], Pinyin::sentence(''));
// 玉不琢,不成器
$this->assertPinyin(['', '', 'zhuó', ',', '', 'chéng', ''], Pinyin::sentence('玉不琢,不成器'));
// 玉琢
$this->assertPinyin(['', 'zhuó'], Pinyin::sentence('玉琢'));
// 琢磨
// https://dict.revised.moe.edu.tw/dictView.jsp?ID=118935&la=0&powerMode=0
$this->assertPinyin(['zhuó', ''], Pinyin::sentence('琢磨'));

// https://github.com/overtrue/pinyin/issues/195
$this->assertSame([
Expand Down

0 comments on commit 0e4aea8

Please sign in to comment.