Skip to content

Commit c6c5dcb

Browse files
committed
test: cover scientific notation expansion
1 parent cf02825 commit c6c5dcb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/util.test.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ describe('InputNumber.Util', () => {
152152
expect(num2str(0e5)).toEqual('0');
153153
expect(num2str(1.23e-19)).toEqual(`0.${'0'.repeat(18)}123`);
154154
expect(num2str(-1.23e-20)).toEqual(`-0.${'0'.repeat(19)}123`);
155+
expect(num2str(1.23e1)).toEqual('12.3');
156+
expect(num2str(1.23e5)).toEqual('123000');
155157
});
156158
});
157159

0 commit comments

Comments
 (0)