From 4d03541e52b69231e20038ef1c2b2ae2a7b8aea3 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Thu, 17 Feb 2022 02:04:42 +0100 Subject: Simplified unnecessary code --- tests/stack.nim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests') 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) -- cgit v1.2.3