June 2005
Intermediate to advanced
384 pages
8h 4m
English
In this chapter, we show how to use Fit tables to write tests in which errors are expected.
Sometimes, we want to test that the test data is rejected, as expected. For example, consider Figure 9.1, in which a negative amount is used in the first test row.
Figure 9.1 Negative Amount

When this Fit table is run, we get the report (partly) shown in Figure 9.2, in which the program rejects the negative amount. The report also provides programmer-specific information about the error in the yellow-colored cell (see Plate 5), which we can ignore.
Figure 9.2 Negative Amount Is Rejected ...
Read now
Unlock full access