aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJulien Dessaux2022-02-17 02:04:42 +0100
committerJulien Dessaux2022-02-17 02:04:42 +0100
commit4d03541e52b69231e20038ef1c2b2ae2a7b8aea3 (patch)
treeccab3fa1aaa71272813190ca5ff3202995421b28 /tests
parentFixed test failing in nim 1.6 (diff)
downloadnimfunge98-4d03541e52b69231e20038ef1c2b2ae2a7b8aea3.tar.gz
nimfunge98-4d03541e52b69231e20038ef1c2b2ae2a7b8aea3.tar.bz2
nimfunge98-4d03541e52b69231e20038ef1c2b2ae2a7b8aea3.zip
Simplified unnecessary code
Diffstat (limited to 'tests')
-rw-r--r--tests/stack.nim4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/stack.nim b/tests/stack.nim
index bf02299..e041a80 100644
--- a/tests/stack.nim
+++ b/tests/stack.nim
@@ -72,9 +72,7 @@ suite "Stack":
test "Duplicate":
var empty = NewStack()
empty[].Duplicate()
- check empty.height == 2
- check empty.data[0] == 0
- check empty.data[1] == 0
+ check empty[].Pop() == 0
var some = NewStack()
some[].Push(2)
some[].Push(-4)