diff --git a/tests/test-mprioqueue.c b/tests/test-mprioqueue.c index 1786e0f6..8dcf727b 100644 --- a/tests/test-mprioqueue.c +++ b/tests/test-mprioqueue.c @@ -256,6 +256,10 @@ static void test_update(void) front = obj_pqueue_front(p); assert ( (*front)->a == 5); + + obj_pqueue_emplace_ui(p, 0); + front = obj_pqueue_front(p); + assert ( (*front)->ptr[0] == 0); } obj_pqueue_clear(p); }