From 0571557ad1a943739806046a24fdaf1e62b32886 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 1 Feb 2023 18:15:51 +0100 Subject: Enabled make test and test.sh --- tests/fst_tests.h | 54 +++++++----------------------------------------------- 1 file changed, 7 insertions(+), 47 deletions(-) (limited to 'tests/fst_tests.h') diff --git a/tests/fst_tests.h b/tests/fst_tests.h index 2e11069..3a7496e 100644 --- a/tests/fst_tests.h +++ b/tests/fst_tests.h @@ -2,56 +2,16 @@ #define FST_TESTS_H #include "../src/fst.h" -#include "test.h" - -bool testmethod_fst_is_consistent(void *); -bool testmethod_cube_to_fst_to_cube(void *); -bool testmethod_fst_move(void *); -bool testmethod_fst_inverse(void *); +#include "test_common.h" extern char *algs[]; -Test test_fst_is_consistent = { - .name = "Consitency of FST (converted from cube)", - .t = testmethod_fst_is_consistent, - .cases = (void **)algs, -}; -Test test_cube_to_fst_to_cube = { - .name = "Cube to FST to cube", - .t = testmethod_cube_to_fst_to_cube, - .cases = (void **)algs, -}; -Test test_fst_move = { - .name = "FST move", - .t = testmethod_fst_move, - .cases = (void **)algs, -}; -Test test_fst_inverse = { - .name = "FST inverse", - .t = testmethod_fst_inverse, - .cases = (void **)algs, -}; - -Test *pre_init[] = { - &test_fst_is_consistent, - &test_cube_to_fst_to_cube, - NULL -}; -TestSuite fst_pre_init_suite = { - .setup = NULL, - .tests = pre_init, - .teardown = NULL, -}; +extern Test test_fst_is_consistent; +extern Test test_cube_to_fst_to_cube; +extern Test test_fst_move; +extern Test test_fst_inverse; -Test *post_init[] = { - &test_fst_move, - &test_fst_inverse, - NULL -}; -TestSuite fst_post_init_suite = { - .setup = init_fst, - .tests = post_init, - .teardown = NULL, -}; +extern TestSuite fst_pre_init_suite; +extern TestSuite fst_post_init_suite; #endif -- cgit v1.3