diff options
Diffstat (limited to 'test/03_inverse')
| -rw-r--r-- | test/03_inverse/00_solved.in | 1 | ||||
| -rw-r--r-- | test/03_inverse/00_solved.out | 1 | ||||
| -rw-r--r-- | test/03_inverse/01_scrambled.in | 1 | ||||
| -rw-r--r-- | test/03_inverse/01_scrambled.out | 1 | ||||
| -rw-r--r-- | test/03_inverse/inverse_tests.c | 27 |
5 files changed, 0 insertions, 31 deletions
diff --git a/test/03_inverse/00_solved.in b/test/03_inverse/00_solved.in deleted file mode 100644 index dff224d..0000000 --- a/test/03_inverse/00_solved.in +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | UF0 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0 | ||
diff --git a/test/03_inverse/00_solved.out b/test/03_inverse/00_solved.out deleted file mode 100644 index dff224d..0000000 --- a/test/03_inverse/00_solved.out +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | UF0 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0 | ||
diff --git a/test/03_inverse/01_scrambled.in b/test/03_inverse/01_scrambled.in deleted file mode 100644 index 263213b..0000000 --- a/test/03_inverse/01_scrambled.in +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | DR0 DB0 BL0 DF1 UB0 UR1 FR1 UF0 FL1 DL0 BR1 UL1 DBL2 DFL0 UBR1 DFR2 UFR0 DBR1 UBL0 UFL0 | ||
diff --git a/test/03_inverse/01_scrambled.out b/test/03_inverse/01_scrambled.out deleted file mode 100644 index 25089c6..0000000 --- a/test/03_inverse/01_scrambled.out +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | DR0 UR0 UB0 DF1 UL1 BR1 FL0 UF0 DL1 FR1 DB0 BL1 UFL0 DFR0 UBL0 UBR2 DBL0 DFL2 DBR1 UFR1 | ||
diff --git a/test/03_inverse/inverse_tests.c b/test/03_inverse/inverse_tests.c deleted file mode 100644 index 0a56568..0000000 --- a/test/03_inverse/inverse_tests.c +++ /dev/null | |||
| @@ -1,27 +0,0 @@ | |||
| 1 | #include <stdbool.h> | ||
| 2 | #include <stdint.h> | ||
| 3 | #include <stdio.h> | ||
| 4 | |||
| 5 | #include "../../src/cube.h" | ||
| 6 | |||
| 7 | #define STRLENMAX 10000 | ||
| 8 | |||
| 9 | int main() { | ||
| 10 | char str[STRLENMAX]; | ||
| 11 | cube_t cube, inv; | ||
| 12 | |||
| 13 | fgets(str, STRLENMAX, stdin); | ||
| 14 | cube = readcube(H48, str); | ||
| 15 | inv = inverse(cube); | ||
| 16 | |||
| 17 | if (iserror(inv)) { | ||
| 18 | printf("Error inverting cube\n"); | ||
| 19 | } else if (!issolvable(inv)) { | ||
| 20 | printf("Inverted cube is not solvable\n"); | ||
| 21 | } else { | ||
| 22 | writecube(H48, inv, str); | ||
| 23 | printf("%s\n", str); | ||
| 24 | } | ||
| 25 | |||
| 26 | return 0; | ||
| 27 | } | ||
