diff --git a/examples/roman2.py b/examples/roman2.py index 50dee99..8589ed9 100644 --- a/examples/roman2.py +++ b/examples/roman2.py @@ -24,7 +24,7 @@ roman_numeral_map = (('M', 1000), def to_roman(n): '''convert integer to Roman numeral''' if n > 3999: - raise OutOfRangeError('number out of range (must be less than 3999)') + raise OutOfRangeError('number out of range (must be less than 4000)') result = '' for numeral, integer in roman_numeral_map: diff --git a/unit-testing.html b/unit-testing.html index 9a91c05..3109530 100755 --- a/unit-testing.html +++ b/unit-testing.html @@ -319,7 +319,7 @@ FAILED (failures=1)
def to_roman(n):
'''convert integer to Roman numeral'''
if n > 3999:
- raise OutOfRangeError('number out of range (must be less than 3999)') ①
+ raise OutOfRangeError('number out of range (must be less than 4000)') ①
result = ''
for numeral, integer in roman_numeral_map: