Re: [PATCH] Add tests for binaryheap.c

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: [PATCH] Add tests for binaryheap.c
Дата
Msg-id aF2xurczhN0rS07L@nathan
обсуждение исходный текст
Список pgsql-hackers
On Thu, Jun 26, 2025 at 06:16:10PM +0300, Aleksander Alekseev wrote:
> The proposed patch adds tests for binaryheap.c. This is similar to our
> tests for RB-trees in test_rbtree.c.

Adding some tests here seems like a good idea.

I'm not sure I see much point in testing both min-heaps and max-heaps.  The
only difference between the two is in the comparator, so IMHO the extra
tests really only serve to test the test comparator.

-- 
nathan



В списке pgsql-hackers по дате отправления: