Finished implementing the stackstack
This commit is contained in:
parent
c0393d0ca1
commit
c9b3a999bd
4 changed files with 17 additions and 0 deletions
tests
|
@ -22,6 +22,14 @@ suite "StackStack":
|
|||
empty[].Push(3)
|
||||
empty[].Clear()
|
||||
check empty[].Pop() == 0
|
||||
test "Duplicate":
|
||||
var empty = NewStackStack()
|
||||
empty[].Clear()
|
||||
check empty[].Pop() == 0
|
||||
test "Swap":
|
||||
var empty = NewStackStack()
|
||||
empty[].Swap()
|
||||
check empty[].Pop() == 0
|
||||
test "Begin":
|
||||
var empty = NewStackStack()
|
||||
empty[].Begin((1, 2))
|
||||
|
|
Reference in a new issue