diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-04-13 15:31:32 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-04-13 15:31:32 +0200 |
| commit | a18d4b0ba97b301193597a963a77a40ef7c2254b (patch) | |
| tree | e2137f21fd162380a2cf8ec6e54af959ad4c4d90 /test/061_inverse_trans | |
| parent | ae055f1fc993d406939f57f11553d218e1efde82 (diff) | |
| download | cubecore-a18d4b0ba97b301193597a963a77a40ef7c2254b.tar.gz cubecore-a18d4b0ba97b301193597a963a77a40ef7c2254b.zip | |
Some renaming
Diffstat (limited to 'test/061_inverse_trans')
| -rw-r--r-- | test/061_inverse_trans/inverse_trans_tests.c | 8 |
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 | } |
