add: 罗马数字转整数
This commit is contained in:
8
test/string/roman-to-integer.test.js
Normal file
8
test/string/roman-to-integer.test.js
Normal file
@ -0,0 +1,8 @@
|
||||
import { romanToInt } from '../../src/string/roman-to-integer'
|
||||
|
||||
test('罗马数字转整数', () => {
|
||||
expect(romanToInt('III')).toBe(3)
|
||||
expect(romanToInt('IV')).toBe(4)
|
||||
expect(romanToInt('IX')).toBe(9)
|
||||
expect(romanToInt('LVIII')).toBe(58)
|
||||
})
|
Reference in New Issue
Block a user