This commit is contained in:
Mark Pilgrim
2009-07-23 21:15:17 -04:00
parent fcea6b511c
commit b9508d716a
+1 -1
View File
@@ -137,7 +137,7 @@ if __name__ == '__main__':
<p>Once you have a test case, you can start coding the <code>to_roman()</code> function. First, you should stub it out as an empty function and make sure the tests fail. If the tests succeed before you&#8217;ve written any code, you&#8217;re doing it wrong&nbsp;&mdash;&nbsp;your tests aren&#8217;t testing your code at all! Write a test that fails, then code until it passes.
<pre><code class=pp># roman1.py
function to_roman(n):
def to_roman(n):
'''convert integer to Roman numeral'''
<a> pass <span class=u>&#x2460;</span></a></code></pre>
<ol>