Testing, Scala, Functional Programming, Scalacheck, Data Structures.
a different number of items into the stack every time and then calling .head (pick) and then verifying that the size is equals to the number of values that were pushed, which means .head does not modify the stack. toList Now, we can test getting a list representation of the stack (does not modify