Skip to content

Commit

Permalink
Merge pull request #68 from ufec/main
Browse files Browse the repository at this point in the history
fix: 行不行 hang bu xing -> xing bu xing
  • Loading branch information
zh-lx committed Jul 5, 2022
2 parents 6b8a2be + 9f38570 commit 2aab547
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions data/dict3.ts
Expand Up @@ -340,6 +340,7 @@ const DICT3: { [prop: string]: string } = {
信号弹: 'xìn hào dàn',
信皮儿: 'xìn pí er',
行不通: 'xíng bù tōng',
行不行: 'xíng bù xíng',
行方便: 'xíng fāng biàn',
羞答答: 'xiū dā dā',
畜牧场: 'xù mù chǎng',
Expand Down
2 changes: 1 addition & 1 deletion dist/index.cjs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/pinyin-pro.js

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions test/dist.test.js
Expand Up @@ -137,6 +137,11 @@ describe('boundary', () => {
'sì',
]);
});

it('test行不行', () => {
const result = pinyin('行不行');
expect(result).to.be.equal('xíng bù xíng');
})
});

describe('multiple', () => {
Expand Down Expand Up @@ -243,6 +248,11 @@ describe('toneType', () => {
const result = pinyin('山西', { pattern: 'first', toneType: 'num' });
expect(result).to.be.equal('s1 x1');
});

it('行不行 with none', () => {
const result = pinyin('行不行', { toneType: 'none' });
expect(result).to.be.equal('xing bu xing');
});
});

describe('getPinyin', () => {
Expand Down

0 comments on commit 2aab547

Please sign in to comment.