Skip to content

Commit 9218a5c

Browse files
committed
RomanToDecimal : live test and example were removed, adding Jest test instead.
1 parent e3d605c commit 9218a5c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { romanToDecimal } from '../romanToDecimal'
2+
3+
describe('romanToDecimal', () => {
4+
it('XXIIVV', () => {
5+
expect(romanToDecimal('XXIIVV')).toBe(28)
6+
})
7+
8+
it('MDCCCIV', () => {
9+
expect(romanToDecimal('MDCCCIV')).toBe(1804)
10+
})
11+
12+
it('XXIVI', () => {
13+
expect(romanToDecimal('XXIVI')).toBe(25)
14+
})
15+
})

0 commit comments

Comments
 (0)