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