title: How to test a stack of n elements?
body: <p>This seems like a silly question but  I would really like your comments and would like to validate my tester thinking..</p>
  
  <pre><code>I can think of following test cases:
  1) Pop element from empty stack should return error
  2) Push n+1 elements in stack should return error during insertion of n+1th element
  3) validate empty,full and top functions of stack.
  4) if stack is used in multithreaded environment , make sure it is synchronized.
  5) validate stack functionality: 
      push element (x)
      pop element: it should return x
  </code></pre>
  
  <p>Comments?</p>
  
  <p>If this question is asked in an interview, what could be the possible answers?
  Is my answer valid enough?</p>