diff options
| author | Mistivia <i@mistivia.com> | 2025-06-09 14:18:20 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-06-09 14:18:20 +0800 |
| commit | a690e564d82a46c4e729d88fcc660e4e2f1e6ceb (patch) | |
| tree | c40c404eb61a73168050d7b57fd5bbd5709084dd /tests/test_vec.c | |
| parent | 17690b812b7d59a7f37c858a55b25be91a02ff4c (diff) | |
add show trait
Diffstat (limited to 'tests/test_vec.c')
| -rw-r--r-- | tests/test_vec.c | 4 |
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); |
