Skip to content

Commit

Permalink
test_batch_api: remove max_terms = SIZE_MAX -1 test (for batch_create)
Browse files Browse the repository at this point in the history
we can't hit ARG_CHECK(max_terms <= SIZE_MAX/2) during testing since
we replace `max_terms` with `STRAUSS_MAX_TERMS_PER_BATCH` before it
  • Loading branch information
siv2r committed Jul 23, 2022
1 parent 42b00bd commit 47d3716
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/modules/batch/tests_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ void test_batch_api(void) {
batch_sttc = secp256k1_batch_create(sttc, 0, NULL);
CHECK(batch_sttc == NULL);
CHECK(ecount == 1);
/* ARG_CHECK(max_terms <= SIZE_MAX/2) in `batch_create` should fail*/
batch_sttc = secp256k1_batch_create(sttc, SIZE_MAX - 1, NULL);
CHECK(batch_sttc == NULL);
CHECK(ecount == 2);

#ifdef ENABLE_MODULE_SCHNORRSIG
/* secp256k1_batch_add tests for batch_none */
Expand Down

0 comments on commit 47d3716

Please sign in to comment.