From 01884fd45f422d7674ee64a2bac90b7bba3c67e6 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 4 Oct 2021 11:25:38 +0200 Subject: Improved stack.nim test coverage --- tests/stack.nim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/stack.nim b/tests/stack.nim index 469c425..623fb1c 100644 --- a/tests/stack.nim +++ b/tests/stack.nim @@ -29,6 +29,9 @@ suite "Stack": check s.data[0] == 5 check s.data[1] == -2 check s.data[2] == 0 + for i in 0..30: + s[].Push(i) + check s.size == 64 test "PopVector": var empty = NewStack() check empty[].PopVector() == (0, 0) @@ -54,6 +57,9 @@ suite "Stack": check s.data[0] == 5 check s.data[1] == -3 check s.data[2] == 0 + for i in 0..15: + s[].PushVector((i, i+1)) + check s.size == 64 test "Clear": var empty: Stack empty.Clear() -- cgit v1.2.3