| 140 | } |
| 141 | |
| 142 | static void check_htable(struct example_htable *htable, |
| 143 | struct example *arr[], |
| 144 | size_t num_arr) |
| 145 | { |
| 146 | for (size_t i = 0; i < num_arr; i++) { |
| 147 | if (arr[i]) |
| 148 | assert(example_htable_get(htable, example_key(arr[i])) == arr[i]); |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | int main(int argc, char *argv[]) |
| 153 | { |