aboutsummaryrefslogtreecommitdiff
path: root/test/src/math/test_subgroups.c
diff options
context:
space:
mode:
authorJ08nY2017-08-29 16:57:31 +0200
committerJ08nY2017-08-29 16:57:31 +0200
commit4b5d03eda289aa477e693cad8b598a398bb7e04c (patch)
tree93977fbc769daaf1b89620753070e4f408b7bf41 /test/src/math/test_subgroups.c
parenta826785b6d421057c11fc36cc52ce85a20af32f4 (diff)
downloadecgen-4b5d03eda289aa477e693cad8b598a398bb7e04c.tar.gz
ecgen-4b5d03eda289aa477e693cad8b598a398bb7e04c.tar.zst
ecgen-4b5d03eda289aa477e693cad8b598a398bb7e04c.zip
Diffstat (limited to 'test/src/math/test_subgroups.c')
-rw-r--r--test/src/math/test_subgroups.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/src/math/test_subgroups.c b/test/src/math/test_subgroups.c
index fa81788..ad42282 100644
--- a/test/src/math/test_subgroups.c
+++ b/test/src/math/test_subgroups.c
@@ -5,12 +5,9 @@
#include "gen/types.h"
#include "math/subgroups.h"
#include <criterion/criterion.h>
+#include "test/utils.h"
-void setup(void) {
- pari_init(1000000000, 1000000);
-}
-
-TestSuite(subgroups, .init=setup);
+TestSuite(subgroups, .init=default_setup, .fini=default_teardown);
Test(subgroups, test_prime_factors) {
curve_t curve = {.order = stoi(12)};