diff options
Diffstat (limited to 'tests/fst_tests.c')
| -rw-r--r-- | tests/fst_tests.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/fst_tests.c b/tests/fst_tests.c index dfaab39..1a9bedd 100644 --- a/tests/fst_tests.c +++ b/tests/fst_tests.c | |||
| @@ -3,7 +3,8 @@ | |||
| 3 | static bool testmethod_fst_is_consistent(void *); | 3 | static bool testmethod_fst_is_consistent(void *); |
| 4 | static bool testmethod_cube_to_fst_to_cube(void *); | 4 | static bool testmethod_cube_to_fst_to_cube(void *); |
| 5 | static bool testmethod_fst_move(void *); | 5 | static bool testmethod_fst_move(void *); |
| 6 | static bool testmethod_fst_inverse(void *); static bool check_equal_and_log(Cube *, Cube *); | 6 | static bool testmethod_fst_inverse(void *); |
| 7 | static bool check_equal_and_log(Cube *, Cube *); | ||
| 7 | static void void_to_cube(void *, Cube *); | 8 | static void void_to_cube(void *, Cube *); |
| 8 | 9 | ||
| 9 | char *algs[] = { | 10 | char *algs[] = { |
| @@ -42,29 +43,29 @@ Test test_fst_inverse = { | |||
| 42 | .cases = (void **)algs, | 43 | .cases = (void **)algs, |
| 43 | }; | 44 | }; |
| 44 | 45 | ||
| 45 | Test *pre_init[] = { | 46 | Test *fst_pre_init[] = { |
| 46 | &test_fst_is_consistent, | 47 | &test_fst_is_consistent, |
| 47 | &test_cube_to_fst_to_cube, | 48 | &test_cube_to_fst_to_cube, |
| 48 | NULL | 49 | NULL |
| 49 | }; | 50 | }; |
| 50 | TestSuite fst_pre_init_suite = { | 51 | TestSuite fst_pre_init_suite = { |
| 51 | .setup = NULL, | 52 | .setup = NULL, |
| 52 | .tests = pre_init, | 53 | .tests = fst_pre_init, |
| 53 | .teardown = NULL, | 54 | .teardown = NULL, |
| 54 | }; | 55 | }; |
| 55 | 56 | ||
| 56 | Test *post_init[] = { | 57 | Test *fst_post_init[] = { |
| 57 | &test_fst_move, | 58 | &test_fst_move, |
| 58 | &test_fst_inverse, | 59 | &test_fst_inverse, |
| 59 | NULL | 60 | NULL |
| 60 | }; | 61 | }; |
| 61 | TestSuite fst_post_init_suite = { | 62 | TestSuite fst_post_init_suite = { |
| 62 | .setup = init_fst, | 63 | .setup = init_fst, |
| 63 | .tests = post_init, | 64 | .tests = fst_post_init, |
| 64 | .teardown = NULL, | 65 | .teardown = NULL, |
| 65 | }; | 66 | }; |
| 66 | 67 | ||
| 67 | TestSuite *fst_testsuites[] = { | 68 | TestSuite *fst_suites[] = { |
| 68 | &fst_pre_init_suite, | 69 | &fst_pre_init_suite, |
| 69 | &fst_post_init_suite, | 70 | &fst_post_init_suite, |
| 70 | NULL | 71 | NULL |
