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/040_inverse_cube | |
| parent | ae055f1fc993d406939f57f11553d218e1efde82 (diff) | |
| download | cubecore-a18d4b0ba97b301193597a963a77a40ef7c2254b.tar.gz cubecore-a18d4b0ba97b301193597a963a77a40ef7c2254b.zip | |
Some renaming
Diffstat (limited to 'test/040_inverse_cube')
| -rw-r--r-- | test/040_inverse_cube/inverse_tests.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/040_inverse_cube/inverse_tests.c b/test/040_inverse_cube/inverse_tests.c index 2ff3bc7..ca7e481 100644 --- a/test/040_inverse_cube/inverse_tests.c +++ b/test/040_inverse_cube/inverse_tests.c | |||
| @@ -1,18 +1,16 @@ | |||
| 1 | #include "../test.h" | 1 | #include "../test.h" |
| 2 | 2 | ||
| 3 | cube_t inverse(cube_t); | ||
| 4 | |||
| 5 | int main(void) { | 3 | int main(void) { |
| 6 | char str[STRLENMAX]; | 4 | char str[STRLENMAX]; |
| 7 | cube_t cube, inv; | 5 | cube_t cube, inv; |
| 8 | 6 | ||
| 9 | fgets(str, STRLENMAX, stdin); | 7 | fgets(str, STRLENMAX, stdin); |
| 10 | cube = readcube("H48", str); | 8 | cube = readcube("H48", str); |
| 11 | inv = inverse(cube); | 9 | inv = cube_inverse(cube); |
| 12 | 10 | ||
| 13 | if (iserror(inv)) { | 11 | if (cube_error(inv)) { |
| 14 | printf("Error inverting cube\n"); | 12 | printf("Error inverting cube\n"); |
| 15 | } else if (!issolvable(inv)) { | 13 | } else if (!cube_solvable(inv)) { |
| 16 | printf("Inverted cube is not solvable\n"); | 14 | printf("Inverted cube is not solvable\n"); |
| 17 | } else { | 15 | } else { |
| 18 | writecube("H48", inv, str); | 16 | writecube("H48", inv, str); |
