Skip to content

Commit 23c9094

Browse files
committed
added test case for 塵 to support traditional Chinese character, failed for 塵 - need code change for compiler
1 parent a8ec067 commit 23c9094

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);
@@ -147,6 +147,12 @@ describe("hanzi2num", () => {
147147
});
148148
});
149149

150+
describe('hanzi2num("一塵")', () => {
151+
it("should translate hanzi to number correctly", () => {
152+
assert.strictEqual(hanzi2num("一塵"), 1e-9);
153+
});
154+
});
155+
150156
describe('hanzi2num("一尘")', () => {
151157
it("should translate hanzi to number correctly", () => {
152158
assert.strictEqual(hanzi2num("一尘"), 1e-9);

0 commit comments

Comments
 (0)