#include <StackTest.hh>
Inheritance diagram for StackTest:
Public Methods | |
StackTest () | |
void | run_tests () |
override this to actually run tests; call TestComponent::run() to execute tests. More... | |
void | testBadSize () |
void | testUnderflow () |
void | testPopulate () |
void | testOverflow () |
void | testPop () |
Private Types | |
enum | { SIZE = 5 } |
Private Attributes | |
Stack< int > | stk |
|
Definition at line 8 of file StackTest.hh. |
|
Definition at line 5 of file StackTest.cc. |
|
override this to actually run tests; call TestComponent::run() to execute tests.
Implements ccunit::UnitTest. Definition at line 12 of file StackTest.cc. References testBadSize, testOverflow, testPop, testPopulate, and testUnderflow. |
|
Definition at line 25 of file StackTest.cc. References _fail, and ccunit::UnitTest::_succeed. Referenced by run_tests. |
|
Definition at line 84 of file StackTest.cc. References _fail, ccunit::UnitTest::_succeed, Stack< int >::push, SIZE, and stk. Referenced by run_tests. |
|
Definition at line 101 of file StackTest.cc. References _test, Stack< int >::pop, Stack< int >::size, SIZE, and stk. Referenced by run_tests. |
|
Definition at line 63 of file StackTest.cc. References _fail, ccunit::UnitTest::_succeed, _test, Stack< int >::push, Stack< int >::size, SIZE, stk, and Stack< int >::top. Referenced by run_tests. |
|
Definition at line 39 of file StackTest.cc. References _fail, ccunit::UnitTest::_succeed, _test, Stack< int >::pop, Stack< int >::size, stk, and Stack< int >::top. Referenced by run_tests. |
|
Definition at line 9 of file StackTest.hh. Referenced by testOverflow, testPop, testPopulate, and testUnderflow. |