Add EMPLACE test for priority queue
This commit is contained in:
1 parent
154865f0f1
commit
22a93514ff
1 file changed
+4
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user