Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amerharb committed May 3, 2024
1 parent 39633b2 commit 4b9d31e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/roman/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ describe('convert()', () => {
1000, 900, 500, 400, 100, 90, 50, 40,
12, 11, 10, 9,
8, 7, 6, 5, 4, 3, 2, 1,
])
] as const)
('convert %s to correct roman', (it) => {
const actual = convert(it)
expect(actual).toEqual(Ro[it as keyof typeof Ro])
expect(actual).toEqual(Ro[it])
})
it.each([NaN, Infinity, -Infinity])
('throw Error for non number [%s]', (it) => {
Expand Down

0 comments on commit 4b9d31e

Please sign in to comment.