aboutsummaryrefslogtreecommitdiff
path: root/test/061_inverse_trans
diff options
context:
space:
mode:
Diffstat (limited to 'test/061_inverse_trans')
-rw-r--r--test/061_inverse_trans/inverse_trans_tests.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/061_inverse_trans/inverse_trans_tests.c b/test/061_inverse_trans/inverse_trans_tests.c
index 77bd40b..7de8f66 100644
--- a/test/061_inverse_trans/inverse_trans_tests.c
+++ b/test/061_inverse_trans/inverse_trans_tests.c
@@ -11,7 +11,7 @@ int main(void) {
11 cube_t cube; 11 cube_t cube;
12 12
13 for (t = 0; t < 48; t++) { 13 for (t = 0; t < 48; t++) {
14 cube = solvedcube(); 14 cube = cube_new();
15 cube = applymoves(cube, "R"); 15 cube = applymoves(cube, "R");
16 cube = applymoves(cube, "U"); 16 cube = applymoves(cube, "U");
17 cube = applymoves(cube, "F"); 17 cube = applymoves(cube, "F");
@@ -20,15 +20,15 @@ int main(void) {
20 tinv = inverse_trans(t); 20 tinv = inverse_trans(t);
21 cube = applytrans(cube, transstr[tinv]); 21 cube = applytrans(cube, transstr[tinv]);
22 22
23 if (iserror(cube)) { 23 if (cube_error(cube)) {
24 printf("Error transforming cube\n"); 24 printf("Error transforming cube\n");
25 } else if (!issolvable(cube)) { 25 } else if (!cube_solvable(cube)) {
26 printf("Transformed cube is not solvable\n"); 26 printf("Transformed cube is not solvable\n");
27 } else { 27 } else {
28 cube = applymoves(cube, "F'"); 28 cube = applymoves(cube, "F'");
29 cube = applymoves(cube, "U'"); 29 cube = applymoves(cube, "U'");
30 cube = applymoves(cube, "R'"); 30 cube = applymoves(cube, "R'");
31 if (!issolved(cube)) 31 if (!cube_solved(cube))
32 printf("%s: Error! Got %" PRIu8 "\n", 32 printf("%s: Error! Got %" PRIu8 "\n",
33 transstr[t], tinv); 33 transstr[t], tinv);
34 } 34 }

Generated with cgit - Back to sebastiano.tronto.net