00001 /* -*- Mode:C++ -*- */ 00002 #include "Stack.hh" 00003 #include "UnitTest.hh" 00004 #include <iostream> 00005 00006 class StackTest : public ccunit::UnitTest 00007 { 00008 enum {SIZE = 5}; 00009 Stack<int> stk; 00010 00011 public: 00012 StackTest(); 00013 00014 void run_tests(); 00015 00016 void testBadSize(); 00017 00018 void testUnderflow(); 00019 00020 void testPopulate(); 00021 00022 void testOverflow(); 00023 00024 void testPop(); 00025 };