////////////////////////////////////
// 
// Client code for Stack class
//
// Tests performed:
//
// 1. Create stack with default size
// 2. Create stack specifying size
// 3. Print size of stack with default size
// 4. Print size of stack with specified size
// 5. Show stack is empty
// 6. Pop item from empty stack to cause error
//

#include "bool.h"
#include "stack.h"
#include <iostream.h>
#include <iomanip.h>


void main(void)
{

  Stack stack1;     // 1. create stack with default size of MAX_SIZE
  Stack stack2(5);  // 2. create stack with size 5

    // 3. print out size of stack1
  cout << "Size of stack1 is " << stack1.getSize() << endl;

    // 4. print out size of stack2
  cout << "Size of stack2 is " << stack2.getSize() << endl;

    // 5. show that stack1 is empty
  if (stack1.isEmpty())
    cout << "stack1 is empty" << endl;
  else
    cout << "stack1 is NOT empty" << endl;

    // 6. pop item off of empty stack to show error message
  stack1.popItem();


	//******** do several more tests below ***********
