From 5cf18fa4694ab9f082813d04e3ec5b78a061d9df Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 26 Dec 2022 19:27:21 +0100 Subject: Implemented faster fst_ep_to_epos --- tests/fst_post_init_tests.c | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'tests') diff --git a/tests/fst_post_init_tests.c b/tests/fst_post_init_tests.c index 653e379..9d8d554 100644 --- a/tests/fst_post_init_tests.c +++ b/tests/fst_post_init_tests.c @@ -4,19 +4,16 @@ static bool fst_move_testcase(Cube *c, Alg *a); static bool fst_inverse_testcase(Cube *c, Alg *a); static bool fst_move_test(); -static bool fst_where_is_edge_test(); static bool fst_inverse_test(); static Tester test[] = { fst_move_test, - fst_where_is_edge_test, fst_inverse_test, NULL }; static char *name[] = { "FST move", - "FST where is edge", "FST inverse", }; @@ -61,36 +58,6 @@ fst_move_test() return try_all_str(fst_move_testcase, "FST move incorrect"); } -static bool -fst_where_is_edge_test() -{ - int i; - Alg *scr; - Cube c, d; - FstCube fst; - - /* Testing on a single scramble is fine for now */ - scr = new_alg("RUFDL2B2FRD"); - make_solved(&c); - apply_alg(scr, &c); - fst = cube_to_fst(&c); - - for (i = 0; i < 12; i++) { - if (fst_where_is_edge(c.ep[i], fst) != i) { - fst_to_cube(fst, &d); - printf("Alg: "); - print_alg(scr, false); - printf("Expected:\n"); - print_cube(&c); - printf("But got:\n"); - print_cube(&d); - return false; - } - } - - return true; -} - static bool fst_inverse_test() { -- cgit v1.3