mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-06 01:18:23 +08:00
RomanToDecimal : live test and example were removed, adding Jest test instead.
This commit is contained in:
15
Conversions/test/RomanToDecimal.test.js
Normal file
15
Conversions/test/RomanToDecimal.test.js
Normal 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)
|
||||||
|
})
|
||||||
|
})
|
Reference in New Issue
Block a user