feat: keep consistent for first #97
Annotations
3 errors and 1 warning
test/all.test.js > all > [all]test all with nonZh:
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
|
test/all.test.js > all > [all]test all consecutive nonZh:
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
Process completed with exit code 1.
|
run
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/
|