aboutsummaryrefslogtreecommitdiff
path: root/tests/stackStack.nim
diff options
context:
space:
mode:
authorJulien Dessaux2021-10-04 20:10:21 +0200
committerJulien Dessaux2021-10-04 20:10:21 +0200
commitc9b3a999bd003b6489c5679c91c06ec48258e648 (patch)
treeffef54a52d86506cf422473a07de0b62d7aeb69e /tests/stackStack.nim
parentImproved readme (diff)
downloadnimfunge98-c9b3a999bd003b6489c5679c91c06ec48258e648.tar.gz
nimfunge98-c9b3a999bd003b6489c5679c91c06ec48258e648.tar.bz2
nimfunge98-c9b3a999bd003b6489c5679c91c06ec48258e648.zip
Finished implementing the stackstack
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))