aboutsummaryrefslogtreecommitdiff
path: root/test/src/gen/test_point.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/gen/test_point.c')
-rw-r--r--test/src/gen/test_point.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/src/gen/test_point.c b/test/src/gen/test_point.c
index d77f83d..d185e9a 100644
--- a/test/src/gen/test_point.c
+++ b/test/src/gen/test_point.c
@@ -14,7 +14,7 @@ Test(point, test_point_random) {
GEN e = ellinit(mkvec2s(1, 3), stoi(23), -1);
curve_t curve = {.order = stoi(27), .curve = e};
config_t cfg = {};
- int ret = point_gen_random(&curve, &cfg, NULL);
+ int ret = point_gen_random(&curve, &cfg, NULL, OFFSET_POINTS);
cr_assert_eq(ret, 1, "Point wasn't generated.");
cr_assert_eq(curve.npoints, 1, "Incorrect number of points.");
@@ -34,7 +34,7 @@ Test(point, test_points_random) {
config_t cfg = {};
size_t npoints = 3;
arg_t arg = {.args = &npoints, .nargs = 1};
- int ret = points_gen_random(&curve, &cfg, &arg);
+ int ret = points_gen_random(&curve, &cfg, &arg, OFFSET_POINTS);
cr_assert_eq(ret, 1, "Points weren't generated.");
cr_assert_eq(curve.npoints, npoints, "Incorrect number of points.");
@@ -62,7 +62,7 @@ Test(point, test_points_trial) {
config_t cfg = {};
pari_ulong prime = 3;
arg_t arg = {.args = &prime, .nargs = 1};
- int ret = points_gen_trial(&curve, &cfg, &arg);
+ int ret = points_gen_trial(&curve, &cfg, &arg, OFFSET_POINTS);
cr_assert_eq(ret, 1, "Points weren't generated.");
cr_assert_eq(curve.npoints, 1, "Incorrect number of points.");
@@ -90,7 +90,7 @@ Test(point, test_points_prime) {
.order = stoi(27), .curve = e, .ngens = 1, .generators = gens};
config_t cfg = {};
pari_ulong prime = 3;
- int ret = points_gen_prime(&curve, &cfg, NULL);
+ int ret = points_gen_prime(&curve, &cfg, NULL, OFFSET_POINTS);
cr_assert_eq(ret, 1, "Points weren't generated.");
cr_assert_eq(curve.npoints, 1, "Incorrect number of points.");
@@ -119,7 +119,7 @@ Test(point, test_points_all) {
config_t cfg = {};
GEN orders = mkvec3s(3, 9, 27);
size_t npoints = 3;
- int ret = points_gen_allgroups(&curve, &cfg, NULL);
+ int ret = points_gen_allgroups(&curve, &cfg, NULL, OFFSET_POINTS);
cr_assert_eq(ret, 1, "Points weren't generated.");
cr_assert_eq(curve.npoints, npoints, "Incorrect number of points.");
@@ -150,7 +150,7 @@ Test(point, test_points_nonprime) {
config_t cfg = {};
GEN orders = mkvec2s(9, 27);
size_t npoints = 2;
- int ret = points_gen_nonprime(&curve, &cfg, NULL);
+ int ret = points_gen_nonprime(&curve, &cfg, NULL, OFFSET_POINTS);
cr_assert_eq(ret, 1, "Points weren't generated.");
cr_assert_eq(curve.npoints, npoints, "Incorrect number of points.");