aboutsummaryrefslogtreecommitdiff
path: root/tests/fst_tests.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fst_tests.h')
-rw-r--r--tests/fst_tests.h54
1 files changed, 7 insertions, 47 deletions
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 @@
2#define FST_TESTS_H 2#define FST_TESTS_H
3 3
4#include "../src/fst.h" 4#include "../src/fst.h"
5#include "test.h" 5#include "test_common.h"
6
7bool testmethod_fst_is_consistent(void *);
8bool testmethod_cube_to_fst_to_cube(void *);
9bool testmethod_fst_move(void *);
10bool testmethod_fst_inverse(void *);
11 6
12extern char *algs[]; 7extern char *algs[];
13 8
14Test test_fst_is_consistent = { 9extern Test test_fst_is_consistent;
15 .name = "Consitency of FST (converted from cube)", 10extern Test test_cube_to_fst_to_cube;
16 .t = testmethod_fst_is_consistent, 11extern Test test_fst_move;
17 .cases = (void **)algs, 12extern Test test_fst_inverse;
18};
19Test test_cube_to_fst_to_cube = {
20 .name = "Cube to FST to cube",
21 .t = testmethod_cube_to_fst_to_cube,
22 .cases = (void **)algs,
23};
24Test test_fst_move = {
25 .name = "FST move",
26 .t = testmethod_fst_move,
27 .cases = (void **)algs,
28};
29Test test_fst_inverse = {
30 .name = "FST inverse",
31 .t = testmethod_fst_inverse,
32 .cases = (void **)algs,
33};
34
35Test *pre_init[] = {
36 &test_fst_is_consistent,
37 &test_cube_to_fst_to_cube,
38 NULL
39};
40TestSuite fst_pre_init_suite = {
41 .setup = NULL,
42 .tests = pre_init,
43 .teardown = NULL,
44};
45 13
46Test *post_init[] = { 14extern TestSuite fst_pre_init_suite;
47 &test_fst_move, 15extern TestSuite fst_post_init_suite;
48 &test_fst_inverse,
49 NULL
50};
51TestSuite fst_post_init_suite = {
52 .setup = init_fst,
53 .tests = post_init,
54 .teardown = NULL,
55};
56 16
57#endif 17#endif

Generated with cgit - Back to sebastiano.tronto.net