aboutsummaryrefslogtreecommitdiff
path: root/tests/test_vec.c
diff options
context:
space:
mode:
authorMistivia <i@mistivia.com>2025-06-09 14:18:20 +0800
committerMistivia <i@mistivia.com>2025-06-09 14:18:20 +0800
commita690e564d82a46c4e729d88fcc660e4e2f1e6ceb (patch)
treec40c404eb61a73168050d7b57fd5bbd5709084dd /tests/test_vec.c
parent17690b812b7d59a7f37c858a55b25be91a02ff4c (diff)
add show trait
Diffstat (limited to 'tests/test_vec.c')
-rw-r--r--tests/test_vec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_vec.c b/tests/test_vec.c
index 6abdd78..4aafc72 100644
--- a/tests/test_vec.c
+++ b/tests/test_vec.c
@@ -10,6 +10,10 @@ int main() {
IntVector_init(&vec);
for (int i = 0; i < 1000; i++) {
+ if (i == 10) {
+ IntVector_show(&vec, stdout);
+ puts("");
+ }
assert(vec.size == i);
IntVector_push_back(&vec, i);
assert(*(IntVector_end(&vec) - 1) == i);