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.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/tests/fst_tests.h b/tests/fst_tests.h
new file mode 100644
index 0000000..2e11069
--- /dev/null
+++ b/tests/fst_tests.h
@@ -0,0 +1,57 @@
1#ifndef FST_TESTS_H
2#define FST_TESTS_H
3
4#include "../src/fst.h"
5#include "test.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
12extern char *algs[];
13
14Test test_fst_is_consistent = {
15 .name = "Consitency of FST (converted from cube)",
16 .t = testmethod_fst_is_consistent,
17 .cases = (void **)algs,
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
46Test *post_init[] = {
47 &test_fst_move,
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
57#endif

Generated with cgit - Back to sebastiano.tronto.net