aboutsummaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorJ08nY2017-12-17 19:30:46 +0100
committerJ08nY2017-12-17 19:30:46 +0100
commit43362aa1c57e3801f57c966c851a70d8e4edb3b4 (patch)
tree6b9060e7e221622ec28a105d7d2ca77c4e4f17bf /test/src
parentf1ef4305ad2e2299f72e569fcb6e31d3b98249dd (diff)
downloadecgen-43362aa1c57e3801f57c966c851a70d8e4edb3b4.tar.gz
ecgen-43362aa1c57e3801f57c966c851a70d8e4edb3b4.tar.zst
ecgen-43362aa1c57e3801f57c966c851a70d8e4edb3b4.zip
Diffstat (limited to 'test/src')
-rw-r--r--test/src/exhaustive/test_brainpool_rfc.c7
-rw-r--r--test/src/test/default.c2
2 files changed, 6 insertions, 3 deletions
diff --git a/test/src/exhaustive/test_brainpool_rfc.c b/test/src/exhaustive/test_brainpool_rfc.c
index 19008b4..63ed116 100644
--- a/test/src/exhaustive/test_brainpool_rfc.c
+++ b/test/src/exhaustive/test_brainpool_rfc.c
@@ -212,10 +212,13 @@ ParameterizedTest(struct rfc_params *param, brainpool_rfc,
setup.validators = checks;
setup.unrolls = unrolls;
+ // pari_sp top = avma;
+ // pari_ulong debug_before = DEBUGLEVEL;
+ // DEBUGLEVEL = 3;
ret = exhaustive_gen(&curve, &setup, OFFSET_A, OFFSET_GENERATORS);
+ // DEBUGLEVEL = debug_before;
+ // dbg_gerepile(top);
- pari_printf("expected a = %P#x\n", lift(a));
- pari_printf("real a = %P#x\n", lift(curve.a));
cr_assert_not_null(curve.a, );
cr_assert_not_null(curve.b, );
cr_assert_eq(ret, 1, );
diff --git a/test/src/test/default.c b/test/src/test/default.c
index 52cd895..27f9525 100644
--- a/test/src/test/default.c
+++ b/test/src/test/default.c
@@ -9,7 +9,7 @@
void default_setup(void) {
memset(cfg, 0, sizeof(config_t));
- pari_init(200000000, 1000000);
+ pari_init(200000000, 1000000); // 200MB memory, 1M primes
// set_mem_funcs(cr_malloc, cr_simple_calloc, cr_realloc, cr_free);
}