Lines Matching refs:hash
21 * \brief Memory pool hash-set class.
57 /* Test find() on empty hash. */
61 const int* val = deTestHash_find(hash, (deInt16)i);
68 deTestHash_insert(hash, (deInt16)i, -i);
71 DE_TEST_ASSERT(deTestHash_getNumElements(hash) == 5000);
74 const int* val = deTestHash_find(hash, (deInt16)i);
80 deTestHash_delete(hash, (deInt16)i);
82 DE_TEST_ASSERT(deTestHash_getNumElements(hash) == 4000);
85 const int* val = deTestHash_find(hash, (deInt16)i);
94 deTestHash_insert(hash, (deInt16)i, -i);
98 const int* val = deTestHash_find(hash, (deInt16)i);
110 for (deTestHashIter_init(hash, &iter); deTestHashIter_hasItem(&iter); deTestHashIter_next(&iter))
115 DE_TEST_ASSERT(*deTestHash_find(hash, key) == -key);
120 DE_TEST_ASSERT(numFound == deTestHash_getNumElements(hash));
127 int numElements = deTestHash_getNumElements(hash);
130 deTestHash_copyToArray(hash, keyArray, DE_NULL);
133 deTestHash_copyToArray(hash, DE_NULL, valueArray);
138 deTestHash_copyToArray(hash, keyArray, valueArray);
148 DE_TEST_ASSERT(*deTestHash_find(hash, key) == val);