aboutsummaryrefslogtreecommitdiff
path: root/tests/stack.nim
diff options
context:
space:
mode:
authorJulien Dessaux2021-10-06 22:06:05 +0200
committerJulien Dessaux2021-10-06 22:06:05 +0200
commitba8933937e0b24e5a648ec176c4f0b8515fb0e2d (patch)
tree33ecdbf0e99eeee21a90a66aba21550dee6c6c74 /tests/stack.nim
parentImplemented steps over a funge space field (diff)
downloadnimfunge98-ba8933937e0b24e5a648ec176c4f0b8515fb0e2d.tar.gz
nimfunge98-ba8933937e0b24e5a648ec176c4f0b8515fb0e2d.tar.bz2
nimfunge98-ba8933937e0b24e5a648ec176c4f0b8515fb0e2d.zip
Implemented missing functions for the interpreter
Diffstat (limited to '')
-rw-r--r--tests/stack.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/stack.nim b/tests/stack.nim
index cecdef9..ebbbe5d 100644
--- a/tests/stack.nim
+++ b/tests/stack.nim
@@ -144,3 +144,6 @@ suite "Stack":
check empty[].Next() == nil
var some = NewStack(next = empty)
check some[].Next() == empty
+ test "GetHeights":
+ var empty = NewStack()
+ check empty[].GetHeights == @[0]