• Home
  • Raw
  • Download

Lines Matching refs:heap

62 	TestHeap*		heap	= TestHeap_create(pool);  in dePoolHeap_selfTest()  local
65 TestHeap_push(heap, HeapItem_create(10, 10)); in dePoolHeap_selfTest()
66 TestHeap_push(heap, HeapItem_create(0, 10)); in dePoolHeap_selfTest()
67 TestHeap_push(heap, HeapItem_create(20, 10)); in dePoolHeap_selfTest()
68 DE_TEST_ASSERT(TestHeap_getNumElements(heap) == 3); in dePoolHeap_selfTest()
70 DE_TEST_ASSERT(TestHeap_popMin(heap).priority == 0); in dePoolHeap_selfTest()
71 DE_TEST_ASSERT(TestHeap_popMin(heap).priority == 10); in dePoolHeap_selfTest()
72 DE_TEST_ASSERT(TestHeap_popMin(heap).priority == 20); in dePoolHeap_selfTest()
73 DE_TEST_ASSERT(TestHeap_getNumElements(heap) == 0); in dePoolHeap_selfTest()
80 TestHeap_push(heap, HeapItem_create(i, -i)); in dePoolHeap_selfTest()
82 DE_TEST_ASSERT(TestHeap_getNumElements(heap) == 2000); in dePoolHeap_selfTest()
86 TestHeap_push(heap, HeapItem_create(i, -i)); in dePoolHeap_selfTest()
87 DE_TEST_ASSERT(TestHeap_getNumElements(heap) == 2500); in dePoolHeap_selfTest()
91 TestHeap_push(heap, HeapItem_create(i, -i)); in dePoolHeap_selfTest()
92 DE_TEST_ASSERT(TestHeap_getNumElements(heap) == 4000); in dePoolHeap_selfTest()
97 HeapItem h = TestHeap_popMin(heap); in dePoolHeap_selfTest()
101 DE_TEST_ASSERT(TestHeap_getNumElements(heap) == 3500); in dePoolHeap_selfTest()
106 HeapItem h = TestHeap_popMin(heap); in dePoolHeap_selfTest()
110 DE_TEST_ASSERT(TestHeap_getNumElements(heap) == 1500); in dePoolHeap_selfTest()
115 HeapItem h = TestHeap_popMin(heap); in dePoolHeap_selfTest()
119 DE_TEST_ASSERT(TestHeap_getNumElements(heap) == 0); in dePoolHeap_selfTest()