diff options
Diffstat (limited to 'tests/gtests/blenlib/BLI_heap_test.cc')
-rw-r--r-- | tests/gtests/blenlib/BLI_heap_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gtests/blenlib/BLI_heap_test.cc b/tests/gtests/blenlib/BLI_heap_test.cc index 02729e7dcfb..e23e89b9cae 100644 --- a/tests/gtests/blenlib/BLI_heap_test.cc +++ b/tests/gtests/blenlib/BLI_heap_test.cc @@ -146,7 +146,7 @@ TEST(heap, ReInsertSimple) nodes[in] = BLI_heap_insert(heap, (float)in, SET_INT_IN_POINTER(in)); } for (int i = 0; i < items_total; i++) { - BLI_heap_reinsert(heap, nodes[i], (float)(items_total + i)); + BLI_heap_node_value_update(heap, nodes[i], (float)(items_total + i)); } for (int out_test = 0; out_test < items_total; out_test++) { @@ -168,7 +168,7 @@ TEST(heap, ReInsertRandom) } BLI_array_randomize(nodes, sizeof(HeapNode *), items_total, 1234); for (int i = 0; i < items_total; i++) { - BLI_heap_reinsert(heap, nodes[i], (float)i); + BLI_heap_node_value_update(heap, nodes[i], (float)i); } for (int out_test = 0; out_test < items_total; out_test++) { HeapNode *node_top = BLI_heap_top(heap); |