Two Test Cases
For testing normal case behaviour
< push(5), noexc, top, 5, integer >
- call push(5), monitoring exception behaviour
- issue a failure message if any exception is raised
- call top, monitoring exception behaviour
- issue a failure message if any exception is raised
- issue a failure message if 5 is not returned
For testing exception behaviour
< pop, emptyExc, dc, dc, dc >
- call pop, monitoring exception behaviour
- issue a failure message if emptyExc is not raised
- issue a failure message if any other exception is raised