diff --git a/unit-testing.html b/unit-testing.html index 0fbdbc2..4efe336 100755 --- a/unit-testing.html +++ b/unit-testing.html @@ -653,7 +653,7 @@ FAILED (failures=2) result = 0 index = 0 for numeral, integer in roman_numeral_map: - while s[index:index+len(numeral)] == numeral: ① + while s[index:index+len(numeral)] == numeral: ① result += integer index += len(numeral) return result @@ -663,7 +663,7 @@ FAILED (failures=2)
If you're not clear how from_roman() works, add a print statement to the end of the while loop:
-
def from_roman(s):
+def from_roman(s):
"""convert Roman numeral to integer"""
result = 0
index = 0