|
|
|
You’ll see from
the user interface that there are three possible outcomes to a test case: the
test can pass, fail, or result in an error.
|
|
|
|
Errors are
essentially failures that weren’t anticipated by the tests.
|
|
|
|
If an error
happens on the customer’s computer, it fill be a fault and bad things will
happen.
|
|
|
|
Show examples of
failure and error.
|
|
|
|
testFailure:
array := #(). self should: [ array
size = 1 ].
|
|
|
|
testError: array
:= 3. array size = 1.
|