background image

Assignment: Tests for a Stack

Stack

 implements common stack data structure.

You can push(), pop(), and peek() elements. 

Throws 

StackException

 if you do something stupid.

Stack

+ Stack( capacity )
+ capacity( ): int
+ size( ): int
+ isEmpty( ): boolean
+ isFull( ): boolean
+ push( T ): void
+ pop( ): T
+ peek( ): T

Comments:

Unit Testing in Python

navigate_before navigate_next