convertToRoman(2)应该返回“II”。
testString: assert.deepEqual(convertToRoman(2), "II");
- text: convertToRoman(3)应该返回“III”。
testString: assert.deepEqual(convertToRoman(3), "III");
- text: convertToRoman(4)应该返回“IV”。
testString: assert.deepEqual(convertToRoman(4), "IV");
- text: convertToRoman(5)应该返回“V”。
testString: assert.deepEqual(convertToRoman(5), "V");
- text: convertToRoman(9)应该返回“IX”。
testString: assert.deepEqual(convertToRoman(9), "IX");
- text: convertToRoman(12)应返回“XII”。
testString: assert.deepEqual(convertToRoman(12), "XII");
- text: convertToRoman(16)应返回“XVI”。
testString: assert.deepEqual(convertToRoman(16), "XVI");
- text: convertToRoman(29)应该返回“XXIX”。
testString: assert.deepEqual(convertToRoman(29), "XXIX");
- text: convertToRoman(44)应该返回“XLIV”。
testString: assert.deepEqual(convertToRoman(44), "XLIV");
- text: convertToRoman(45)应该返回“XLV”
testString: assert.deepEqual(convertToRoman(45), "XLV");
- text: convertToRoman(68)应返回“LXVIII”
testString: assert.deepEqual(convertToRoman(68), "LXVIII");
- text: convertToRoman(83)应返回“LXXXIII”
testString: assert.deepEqual(convertToRoman(83), "LXXXIII");
- text: convertToRoman(97)应该返回“XCVII”
testString: assert.deepEqual(convertToRoman(97), "XCVII");
- text: convertToRoman(99)应返回“XCIX”
testString: assert.deepEqual(convertToRoman(99), "XCIX");
- text: convertToRoman(400)应返回“CD”
testString: assert.deepEqual(convertToRoman(400), "CD");
- text: convertToRoman(500)应返回“D”
testString: assert.deepEqual(convertToRoman(500), "D");
- text: convertToRoman(501)应返回“DI”
testString: assert.deepEqual(convertToRoman(501), "DI");
- text: convertToRoman(649)应返回“DCXLIX”
testString: assert.deepEqual(convertToRoman(649), "DCXLIX");
- text: convertToRoman(798)应返回“DCCXCVIII”
testString: assert.deepEqual(convertToRoman(798), "DCCXCVIII");
- text: convertToRoman(891)应返回“DCCCXCI”
testString: assert.deepEqual(convertToRoman(891), "DCCCXCI");
- text: convertToRoman(1000)应该返回“M”
testString: assert.deepEqual(convertToRoman(1000), "M");
- text: convertToRoman(1004)应返回“MIV”
testString: assert.deepEqual(convertToRoman(1004), "MIV");
- text: convertToRoman(1006)应返回“MVI”
testString: assert.deepEqual(convertToRoman(1006), "MVI");
- text: convertToRoman(1023)应返回“MXXIII”
testString: assert.deepEqual(convertToRoman(1023), "MXXIII");
- text: convertToRoman(2014)应返回“MMXIV”
testString: assert.deepEqual(convertToRoman(2014), "MMXIV");
- text: convertToRoman(3999)应返回“MMMCMXCIX”
testString: assert.deepEqual(convertToRoman(3999), "MMMCMXCIX");
```