diff options
Diffstat (limited to 'tests/vec.c')
| -rw-r--r-- | tests/vec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/vec.c b/tests/vec.c index 1ed5f72..af36b5c 100644 --- a/tests/vec.c +++ b/tests/vec.c @@ -28,6 +28,10 @@ int main() #endif struct ints ints = ints_create(0); + foreach(ints, iter, &ints) { + assert(false && "iterating empty vec"); + } + for (int i = 0; i < 1000000; ++i) { if (!ints_append(&ints, i)) { fprintf(stderr, "failed appending %d to vec\n", i); |
