Skip to content

Commit 8c0a500

Browse files
committed
added test case for 纖 to test/support traditional Chinese character, failed for 纤 - need code change for compiler to support simplified Chinese
1 parent 23c9094 commit 8c0a500

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/hanzi2num.test.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ describe("hanzi2num", () => {
128128
});
129129
});
130130

131-
//渺、埃、尘 (塵)、沙、纤、微
131+
//渺、埃、尘 (塵)、沙、纤(纖)、微
132132
describe('hanzi2num("一微")', () => {
133133
it("should translate hanzi to number correctly", () => {
134134
assert.strictEqual(hanzi2num("一微"), 1e-6);
@@ -141,6 +141,12 @@ describe("hanzi2num", () => {
141141
});
142142
});
143143

144+
describe('hanzi2num("一纖")', () => {
145+
it("should translate hanzi to number correctly", () => {
146+
assert.strictEqual(hanzi2num("一纖"), 1e-7);
147+
});
148+
});
149+
144150
describe('hanzi2num("一沙")', () => {
145151
it("should translate hanzi to number correctly", () => {
146152
assert.strictEqual(hanzi2num("一沙"), 1e-8);

0 commit comments

Comments
 (0)