| The software to be tested is a simple C++
stack class which implements a stack of linked nodes, each containing a single integer
datum value. Various methods are provided, including those to create an empty stack, copy
stacks, check if a stack is empty, push values onto the top of a stack and
pop them off. The objective of this first test is to use these member
functions and hence check the public interface of the stack class: a black-box test.
You can jump to any part of the demonstration below, however, it is recommended that you do not look at the later sections before studying the earlier ones. |