add: 罗马数字转整数
This commit is contained in:
1 parent
1cacc57721
commit
02a4031bd6
3 files changed
+52
No files matched your search
@@ -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