From ac8002a8975dd8b0ebdab71700777cc4abaff1af Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Sat, 22 Aug 2009 12:28:41 -0400 Subject: [PATCH] reword --- refactoring.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/refactoring.html b/refactoring.html index e883e09..5212f4d 100755 --- a/refactoring.html +++ b/refactoring.html @@ -225,7 +225,7 @@ FAILED (errors=3)
  • The roundtrip check will also fail as soon as it hits 4000, because to_roman() still thinks this is out of range. -

    Now that you have test cases that fail due to the new requirements, you can think about fixing the code to bring it in line with the test cases. (One thing that takes some getting used to when you first start coding unit tests is that the code being tested is never “ahead” of the test cases. While it’s behind, you still have some work to do, and as soon as it catches up to the test cases, you stop coding.) +

    Now that you have test cases that fail due to the new requirements, you can think about fixing the code to bring it in line with the test cases. (When you first start coding unit tests, it might feel strange that the code being tested is never “ahead” of the test cases. While it’s behind, you still have some work to do, and as soon as it catches up to the test cases, you stop coding. After you get used to it, you’ll wonder how you ever programmed without tests.)

    [download roman9.py]

    roman_numeral_pattern = re.compile('''