This commit is contained in:
Patrick Pelissier committed 2017-12-12 21:57:59 +01:00
1 parent 179df4bda5
commit 1d15adcef8
2 files changed
+9 -2

No files matched your search

+7
View File
@@ -32,6 +32,13 @@ static void test1(void)
assert (x == 60);
assert (int_pqueue_empty_p(p));
assert (int_pqueue_size(p) == 0);
int_pqueue_push(p, 10);
int_pqueue_push(p, 30);
int_pqueue_pop(&x, p);
assert (x == 10);
int_pqueue_push(p, 5);
int_pqueue_pop(&x, p);
assert (x == 5);
int_pqueue_clear(p);
}