diff --git a/refactoring.html b/refactoring.html index 1693443..97e6ddf 100644 --- a/refactoring.html +++ b/refactoring.html @@ -12,14 +12,14 @@ body{counter-reset:h1 10}
You are here: Home ‣ Dive Into Python 3 ‣
-❝ FIXME ❞
— FIXME +❝ After one has played a vast quantity of notes and more notes, it is simplicity that emerges as the crowning reward of art. ❞
— Frédéric Chopin
Despite your best efforts to write comprehensive unit tests, bugs happen. What do I mean by “bug”? A bug is a test case you haven't written yet. -
>>> import roman6
->>> roman6.from_roman("") ①
+>>> import roman7
+>>> roman7.from_roman("") ①
0
- Remember in the [FIXME-xref] previous section when you kept seeing that an empty string would match the regular expression you were using to check for valid Roman numerals? Well, it turns out that this is still true for the final version of the regular expression. And that's a bug; you want an empty string to raise an
InvalidRomanNumeralError exception just like any other sequence of characters that don't represent a valid Roman numeral.