Skip to content

Commit 80985d1

Browse files
author
iGroza
committed
feat: added additional test cases
1 parent 62df504 commit 80985d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: tests/formatNumberWithSubscriptZeros.test.ts

+3
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ describe('formatNumberWithSubscriptZeros', () => {
6060
it('should format numbers with different precision', () => {
6161
expect(formatNumberWithSubscriptZeros("0.00000123456", 4)).toBe("0.0₅1234");
6262
expect(formatNumberWithSubscriptZeros("0.0000042", 1)).toBe("0.0₅4");
63+
expect(formatNumberWithSubscriptZeros("0.00000402", 2)).toBe("0.0₅40");
64+
expect(formatNumberWithSubscriptZeros("0.000004022", 3)).toBe("0.0₅402");
65+
expect(formatNumberWithSubscriptZeros("0.000004020", 3)).toBe("0.0₅402");
6366
});
6467

6568
it('should format numbers with different minimum values', () => {

0 commit comments

Comments
 (0)