Home | History | Annotate | Download | only in unit

Lines Matching full:hash

27 #include "hash.h"
60 /* Ensure the key hashes are as expected in order to test both hash
71 fail_unless(nodep, "insertion into hash failed");
73 fail_unless(nodep == key1, "hash retrieval failed");
76 fail_unless(nodep, "insertion into hash failed");
78 fail_unless(nodep == key2, "hash retrieval failed");
81 fail_unless(nodep, "insertion into hash failed");
83 fail_unless(nodep == key3, "hash retrieval failed");
87 fail_unless(nodep, "insertion into hash failed");
89 fail_unless(nodep == key4, "hash retrieval failed");
93 fail_unless(nodep == key1, "hash retrieval failed");
95 fail_unless(nodep == key2, "hash retrieval failed");
97 fail_unless(nodep == key3, "hash retrieval failed");
99 fail_unless(nodep == key4, "hash retrieval failed");
103 fail_unless(rc == 0, "hash delete failed");
105 fail_unless(nodep == key1, "hash retrieval failed");
107 fail_unless(!nodep, "hash retrieval should have failed");
111 fail_unless(nodep, "insertion into hash failed");
113 fail_unless(nodep == key4, "hash retrieval failed");
117 fail_unless(rc == 0, "hash delete failed");
119 fail_unless(!nodep, "hash retrieval should have failed");
121 fail_unless(nodep == key4, "hash retrieval failed");
125 fail_unless(rc == 0, "hash delete failed");
127 fail_unless(!nodep, "hash retrieval should have failed");
129 fail_unless(!nodep, "hash retrieval should have failed");
133 fail_unless(rc, "hash delete should have failed");
137 fail_unless(nodep, "insertion into hash failed");
139 fail_unless(nodep == notakey, "hash retrieval failed");
143 fail_unless(nodep == key2, "hash retrieval failed");
145 fail_unless(nodep == key3, "hash retrieval failed");