Präsentation
parent
bd34303452
commit
dedc5ce002
|
@ -0,0 +1,14 @@
|
|||
class StackSpec extends Specification {
|
||||
def "Hinzufügen eines Elementes vergrößert die Größe des Stacks"() { // 1
|
||||
|
||||
setup: "Eine neue Stack Instanz wird erstellt" // 2
|
||||
def stack = new Stack()
|
||||
|
||||
when: // 3
|
||||
stack.push(42);
|
||||
|
||||
then: //4
|
||||
stack.size() == 1
|
||||
}
|
||||
|
||||
}
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue