diff --git a/unit-testing.html b/unit-testing.html index 1c679b5..507d1a0 100755 --- a/unit-testing.html +++ b/unit-testing.html @@ -468,13 +468,13 @@ OK
  • Oh, that’s even worse. Both of these cases should raise an exception. Instead, they give bogus results. -

    Testing for non-integers is not difficult. First, define a NonIntegerError exception. +

    Testing for non-integers is not difficult. First, define a NotIntegerError exception.

    # roman4.py
     class OutOfRangeError(ValueError): pass
     class NotIntegerError(ValueError): pass
    -

    Next, write a test case that checks for the NonIntegerError exception. +

    Next, write a test case that checks for the NotIntegerError exception.

    class ToRomanBadInput(unittest.TestCase):
         .