aboutsummaryrefslogtreecommitdiff
path: root/test/src/io
diff options
context:
space:
mode:
authorJ08nY2017-10-17 13:11:50 +0200
committerJ08nY2017-10-17 13:11:50 +0200
commit3b573a6a432af1909224ff003cfcaadbc5d84308 (patch)
tree59b8890e24ceb7811b4ab6af67e0bf40ef548563 /test/src/io
parent22cdb975e82be5b861436aba1f72ac18351db3be (diff)
downloadecgen-3b573a6a432af1909224ff003cfcaadbc5d84308.tar.gz
ecgen-3b573a6a432af1909224ff003cfcaadbc5d84308.tar.zst
ecgen-3b573a6a432af1909224ff003cfcaadbc5d84308.zip
Cleanup includes and test setup/teardown.
Diffstat (limited to 'test/src/io')
-rw-r--r--test/src/io/test_input.c18
1 files changed, 2 insertions, 16 deletions
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");