diff options
-rw-r--r-- | examples/romanNumerals.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/romanNumerals.py b/examples/romanNumerals.py index 932daa6..9ed4c92 100644 --- a/examples/romanNumerals.py +++ b/examples/romanNumerals.py @@ -45,7 +45,7 @@ romanNumeral = numeral[1, ...].setParseAction(sum) # unit tests def makeRomanNumeral(n): def addDigits(n, limit, c, s): - while n > limit: + while n >= limit: n -= limit s += c return n, s @@ -95,6 +95,7 @@ romanNumeral.runTests( XIX MCMLXXX MMVI + MMMMM """, fullDump=False, postParse=verify_value, |