How I tested your Stack
- I used ClassStackTest.cpp
- It has two suites
- NON_COPY_CONSTRUCTOR_BASED
- Constructor_Test
- Push_Test_1
- Push_Test_2
- COPY_CONSTRUCTOR_BASED
- You can run part of tese tests or the entire module
- Reference
- % ClassStackTest
- % ClassStackTest --run_test=NON_COPY_CONSTRUCTOR_BASED
- % ClassStackTest --run_test=NON_COPY_CONSTRUCTOR_BASED/Push_Test1,Push_Test_2
- Look at the tests.