Skip to content

Commit

Permalink
fixup! test off-by-one
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasnick committed Apr 19, 2024
1 parent 63e42e1 commit 8900312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -3725,7 +3725,7 @@ static void test_hsort(size_t element_len) {
secp256k1_hsort(elements, 1, element_len, test_hsort_cmp, &data);
CHECK(data.counter == 0);
secp256k1_hsort(elements, NUM, element_len, test_hsort_cmp, &data);
CHECK(data.counter >= NUM);
CHECK(data.counter >= NUM - 1);
test_hsort_is_sorted(elements, NUM, element_len);

/* Test hsort with array of random length n */
Expand Down

0 comments on commit 8900312

Please sign in to comment.