aboutsummaryrefslogtreecommitdiff
path: root/tests/stackStack.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stackStack.nim')
-rw-r--r--tests/stackStack.nim8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/stackStack.nim b/tests/stackStack.nim
index 03650f8..9f3c176 100644
--- a/tests/stackStack.nim
+++ b/tests/stackStack.nim
@@ -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))