From 27ac1b783bfaf4e3efc086e686eab1bea8894cf9 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Tue, 6 Oct 2009 11:33:22 -0400 Subject: [PATCH] fixed callout --- unit-testing.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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