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