diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_pqueue.c | 3 | ||||
| -rw-r--r-- | tests/test_vec.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_pqueue.c b/tests/test_pqueue.c index 436a583..3d61552 100644 --- a/tests/test_pqueue.c +++ b/tests/test_pqueue.c @@ -11,6 +11,9 @@ typedef Int MinInt; int MinInt_cmp(Int lhs, Int rhs) { return -Int_cmp(lhs, rhs); } +void MinInt_show(Int self, FILE* fp) { + Int_show(self, fp); +} VECTOR_DEF(MinInt); VECTOR_IMPL(MinInt); 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); |
