diff options
author | Julien Dessaux | 2021-10-04 11:25:38 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-10-04 11:25:38 +0200 |
commit | 01884fd45f422d7674ee64a2bac90b7bba3c67e6 (patch) | |
tree | 8559111e05cfd47801ecbb2ff8e081f563b88441 | |
parent | Improved code coverage of field module (diff) | |
download | nimfunge98-01884fd45f422d7674ee64a2bac90b7bba3c67e6.tar.gz nimfunge98-01884fd45f422d7674ee64a2bac90b7bba3c67e6.tar.bz2 nimfunge98-01884fd45f422d7674ee64a2bac90b7bba3c67e6.zip |
Improved stack.nim test coverage
-rw-r--r-- | tests/stack.nim | 6 |
1 files changed, 6 insertions, 0 deletions
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() |