Skip to content

Commit

Permalink
Remove debug code in unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Viktor Söderqvist <[email protected]>
  • Loading branch information
zuiderkwast committed Nov 7, 2024
1 parent 4e99476 commit 905de31
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/unit/test_hashset.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,11 +417,6 @@ int test_iterator(int argc, char **argv, int flags) {
uint8_t *element;
while (hashsetNext(&iter, (void **)&element)) {
num_returned++;
if (!(element >= element_array && element < element_array + count)) {
printf("Element pointer out of range: %p but range is [%p, %p)\n",
element, element_array, element_array + count);
printf("\n");
}
assert(element >= element_array && element < element_array + count);
/* increment element at this position as a counter */
(*element)++;
Expand Down

0 comments on commit 905de31

Please sign in to comment.