From f4ebcf4878af471602faef85211f50e1dbf35e7d Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Sat, 18 Jul 2009 00:40:42 -0400 Subject: [PATCH] be more clear about current working directory --- refactoring.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/refactoring.html b/refactoring.html index d3b3c5d..552a375 100755 --- a/refactoring.html +++ b/refactoring.html @@ -44,7 +44,7 @@ body{counter-reset:h1 10}

Since your code has a bug, and you now have a test case that tests this bug, the test case will fail:

-you@localhost:~$ python3 romantest8.py -v
+you@localhost:~/diveintopython3/examples$ python3 romantest8.py -v
 from_roman should fail with blank string ... FAIL
 from_roman should fail with malformed antecedents ... ok
 from_roman should fail with repeated pairs of numerals ... ok
@@ -91,7 +91,7 @@ FAILED (failures=1)
-you@localhost:~$ python3 romantest8.py -v
+you@localhost:~/diveintopython3/examples$ python3 romantest8.py -v
 from_roman should fail with blank string ... ok  
 from_roman should fail with malformed antecedents ... ok
 from_roman should fail with repeated pairs of numerals ... ok
@@ -170,7 +170,7 @@ class RoundtripCheck(unittest.TestCase):
 

Now your test cases are up to date with the new requirements, but your code is not, so you expect several of the test cases to fail.

-you@localhost:~$ python3 romantest9.py -v
+you@localhost:~/diveintopython3/examples$ python3 romantest9.py -v
 from_roman should fail with blank string ... ok
 from_roman should fail with malformed antecedents ... ok
 from_roman should fail with non-string input ... ok
@@ -265,7 +265,7 @@ def from_roman(s):
 

You may be skeptical that these two small changes are all that you need. Hey, don’t take my word for it; see for yourself.

-you@localhost:~$ python3 romantest9.py -v
+you@localhost:~/diveintopython3/examples$ python3 romantest9.py -v
 from_roman should fail with blank string ... ok
 from_roman should fail with malformed antecedents ... ok
 from_roman should fail with non-string input ... ok
@@ -424,7 +424,7 @@ def from_roman(s):
 

But does it work? Why yes, yes it does. And I can prove it.

-you@localhost:~$ python3 romantest10.py -v
+you@localhost:~/diveintopython3/examples$ python3 romantest10.py -v
 from_roman should fail with blank string ... ok
 from_roman should fail with malformed antecedents ... ok
 from_roman should fail with non-string input ... ok