feat: keep consistent for first #96
Annotations
4 errors and 1 warning
Run tests with coverage:
test/all.test.js#L81
AssertionError: expected [ { origin: '汉', …(12) }, …(3) ] to deeply equal [ { origin: '汉', …(12) }, …(3) ]
- Expected
+ Received
Array [
Object {
"final": "àn",
"finalBody": "à",
"finalHead": "",
"finalTail": "n",
"first": "h",
"inZhRange": true,
"initial": "h",
"isZh": true,
"num": 4,
"origin": "汉",
"pinyin": "hàn",
"polyphonic": Array [
"hàn",
],
"result": "hàn",
},
Object {
"final": "",
"finalBody": "",
"finalHead": "",
"finalTail": "",
- "first": "",
+ "first": "a",
"inZhRange": false,
"initial": "",
"isZh": false,
"num": 0,
"origin": "a",
"pinyin": "",
"polyphonic": Array [],
"result": "a",
},
Object {
"final": "",
"finalBody": "",
"finalHead": "",
"finalTail": "",
- "first": "",
+ "first": "�",
"inZhRange": false,
"initial": "",
"isZh": false,
"num": 0,
"origin": "𧒽",
"pinyin": "",
"polyphonic": Array [],
"result": "𧒽",
},
Object {
"final": "īn",
"finalBody": "ī",
"finalHead": "",
"finalTail": "n",
"first": "y",
"inZhRange": true,
"initial": "y",
"isZh": true,
"num": 1,
"origin": "音",
"pinyin": "yīn",
"polyphonic": Array [
"yīn",
],
"result": "yīn",
},
]
❯ test/all.test.js:81:28
|
Run tests with coverage:
test/all.test.js#L189
AssertionError: expected [ { origin: '汉', …(12) }, …(2) ] to deeply equal [ { origin: '汉', …(12) }, …(2) ]
- Expected
+ Received
Array [
Object {
"final": "àn",
"finalBody": "à",
"finalHead": "",
"finalTail": "n",
"first": "h",
"inZhRange": true,
"initial": "h",
"isZh": true,
"num": 4,
"origin": "汉",
"pinyin": "hàn",
"polyphonic": Array [
"hàn",
],
"result": "hàn",
},
Object {
"final": "",
"finalBody": "",
"finalHead": "",
"finalTail": "",
- "first": "",
+ "first": "a",
"inZhRange": false,
"initial": "",
"isZh": false,
"num": 0,
"origin": "a𧒽",
"pinyin": "",
"polyphonic": Array [],
"result": "a𧒽",
},
Object {
"final": "īn",
"finalBody": "ī",
"finalHead": "",
"finalTail": "n",
"first": "y",
"inZhRange": true,
"initial": "y",
"isZh": true,
"num": 1,
"origin": "音",
"pinyin": "yīn",
"polyphonic": Array [
"yīn",
],
"result": "yīn",
},
]
❯ test/all.test.js:189:28
|
Run tests with coverage:
test/polyphonic.test.js#L130
AssertionError: expected [ …(5) ] to deeply equal [ …(5) ]
- Expected
+ Received
Array [
Array [
Object {
"final": "ǎo",
"finalBody": "ǎ",
"finalHead": "",
"finalTail": "o",
"first": "h",
"inZhRange": true,
"initial": "h",
"isZh": true,
"num": 3,
"origin": "好",
"pinyin": "hǎo",
},
Object {
"final": "ào",
"finalBody": "à",
"finalHead": "",
"finalTail": "o",
"first": "h",
"inZhRange": true,
"initial": "h",
"isZh": true,
"num": 4,
"origin": "好",
"pinyin": "hào",
},
],
Array [
Object {
"final": "ǎo",
"finalBody": "ǎ",
"finalHead": "",
"finalTail": "o",
"first": "h",
"inZhRange": true,
"initial": "h",
"isZh": true,
"num": 3,
"origin": "好",
"pinyin": "hǎo",
},
Object {
"final": "ào",
"finalBody": "à",
"finalHead": "",
"finalTail": "o",
"first": "h",
"inZhRange": true,
"initial": "h",
"isZh": true,
"num": 4,
"origin": "好",
"pinyin": "hào",
},
],
Array [
Object {
"final": "üé",
"finalBody": "é",
"finalHead": "ü",
"finalTail": "",
"first": "x",
"inZhRange": true,
"initial": "x",
"isZh": true,
"num": 2,
"origin": "学",
"pinyin": "xué",
},
],
Array [
Object {
"final": "í",
"finalBody": "í",
"finalHead": "",
"finalTail": "",
"first": "x",
"inZhRange": true,
"initial": "x",
"isZh": true,
"num": 2,
"origin": "习",
"pinyin": "xí",
},
],
Array [
Object {
"final": "",
"finalBody": "",
"finalHead": "",
"finalTail": "",
- "first": "",
+ "first": "s",
"inZhRange": false,
"initial": "",
"isZh": false,
"num": 0,
"origin": "s",
"pinyin": "",
},
],
]
❯ test/polyphonic.test.js:130:28
|
Run tests with coverage
Process completed with exit code 1.
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Loading