diff options
| author | J08nY | 2017-10-17 13:11:50 +0200 |
|---|---|---|
| committer | J08nY | 2017-10-17 13:11:50 +0200 |
| commit | 3b573a6a432af1909224ff003cfcaadbc5d84308 (patch) | |
| tree | 59b8890e24ceb7811b4ab6af67e0bf40ef548563 | |
| parent | 22cdb975e82be5b861436aba1f72ac18351db3be (diff) | |
| download | ecgen-3b573a6a432af1909224ff003cfcaadbc5d84308.tar.gz ecgen-3b573a6a432af1909224ff003cfcaadbc5d84308.tar.zst ecgen-3b573a6a432af1909224ff003cfcaadbc5d84308.zip | |
| -rw-r--r-- | src/gen/gens.c | 1 | ||||
| -rw-r--r-- | src/gen/order.c | 1 | ||||
| -rw-r--r-- | test/src/exhaustive/test_ansi.c | 18 | ||||
| -rw-r--r-- | test/src/io/test_input.c | 18 |
4 files changed, 4 insertions, 34 deletions
diff --git a/src/gen/gens.c b/src/gen/gens.c index d40de67..2cffbc4 100644 --- a/src/gen/gens.c +++ b/src/gen/gens.c @@ -3,7 +3,6 @@ * Copyright (C) 2017 J08nY */ #include "gens.h" -#include <misc/types.h> #include "exhaustive/arg.h" #include "point.h" diff --git a/src/gen/order.c b/src/gen/order.c index 6af1f00..b802560 100644 --- a/src/gen/order.c +++ b/src/gen/order.c @@ -3,7 +3,6 @@ * Copyright (C) 2017 J08nY */ #include "order.h" -#include <misc/types.h> #include "exhaustive/arg.h" #include "io/input.h" diff --git a/test/src/exhaustive/test_ansi.c b/test/src/exhaustive/test_ansi.c index 94c89eb..9497c80 100644 --- a/test/src/exhaustive/test_ansi.c +++ b/test/src/exhaustive/test_ansi.c @@ -9,26 +9,12 @@ #include "gen/field.h" #include "gen/seed.h" #include "math/poly.h" -#include "test/default.h" -#include "test/input.h" #include "test/memory.h" -#include "test/output.h" +#include "test/io.h" #include "util/bits.h" #include "util/memory.h" -void ansi_suite_setup(void) { - default_setup(); - input_setup(); - output_setup(); -} - -void ansi_suite_teardown(void) { - default_teardown(); - input_teardown(); - output_teardown(); -} - -TestSuite(ansi, .init = ansi_suite_setup, .fini = ansi_suite_teardown); +TestSuite(ansi, .init = io_setup, .fini = io_teardown); Test(ansi, test_seed_random) { curve_t curve = {}; diff --git a/test/src/io/test_input.c b/test/src/io/test_input.c index d32d71c..b0ecf0a 100644 --- a/test/src/io/test_input.c +++ b/test/src/io/test_input.c @@ -5,23 +5,9 @@ #include <criterion/criterion.h> #include "io/input.h" -#include "test/default.h" -#include "test/input.h" -#include "test/output.h" +#include "test/io.h" -void input_suite_setup(void) { - default_setup(); - input_setup(); - output_setup(); -} - -void input_suite_teardown(void) { - default_teardown(); - input_teardown(); - output_teardown(); -} - -TestSuite(input, .init = input_suite_setup, .fini = input_suite_teardown); +TestSuite(input, .init = io_setup, .fini = io_teardown); Test(input, test_prime) { fprintf(write_in, "5\n"); |
