RomanToDecimal : live test and example were removed, adding Jest test instead.

This commit is contained in:
Eric Lavault
2021-10-11 14:51:30 +02:00
parent e3d605c528
commit 9218a5c73e

View File

@ -0,0 +1,15 @@
import { romanToDecimal } from '../romanToDecimal'
describe('romanToDecimal', () => {
it('XXIIVV', () => {
expect(romanToDecimal('XXIIVV')).toBe(28)
})
it('MDCCCIV', () => {
expect(romanToDecimal('MDCCCIV')).toBe(1804)
})
it('XXIVI', () => {
expect(romanToDecimal('XXIVI')).toBe(25)
})
})