Skip to content

Commit 9200e1a

Browse files
committed
refactor(coverage): improve coverage
1 parent 298daca commit 9200e1a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

__tests__/jp-numerals.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,14 @@ describe('jpNumerals', () => {
9898

9999
it('can handle negative integer', () => {
100100
const n = numerals(-12_3456_789_0)
101+
const p = numerals(+12_3456_789_0)
101102

102103
expect(n.sign()).toEqual(-1)
103104

104105
expect(n.toAbsNumber()).toEqual(12_3456_789_0)
105106
expect(n.toNumber()).toEqual(-12_3456_789_0)
106107
expect(n.toSignedString()).toEqual('-12億3456万7890')
108+
expect(p.toSignedString()).toEqual('12億3456万7890')
107109
expect(n.toSignedTuples()).toEqual([-1, [[12, '億'], [3456, '万'], [7890, '']]])
108110
expect(n.toSignedNumerals()).toEqual([-1, [
109111
new Numeral(JpNumeralUnit., 12_3456_7890),

0 commit comments

Comments
 (0)