Whenever you want to run this set of test cases, you can call test-+
.
So let’s try another simple—even simpleminded—approach. To find out what happens to each test case, you could write something like this:
This time the result reporting is more like what you want, but the code itself is pretty gross. The repeated calls to **FORMAT**
as well as the tedious duplication of the test expression cry out to be refactored. The duplication of the test expression is particularly grating because if you mistype it, the test results will be mislabeled.