diff options
Diffstat (limited to '')
| -rw-r--r-- | test/090_solve_simple/01_U_U3.in | 8 | ||||
| -rw-r--r-- | test/090_solve_simple/01_U_U3.out | 1 | ||||
| -rw-r--r-- | test/090_solve_simple/02_MUMU_alloptimal.in | 8 | ||||
| -rw-r--r-- | test/090_solve_simple/02_MUMU_alloptimal.out | 4 | ||||
| -rw-r--r-- | test/090_solve_simple/solve_simple_tests.c | 48 |
5 files changed, 0 insertions, 69 deletions
diff --git a/test/090_solve_simple/01_U_U3.in b/test/090_solve_simple/01_U_U3.in deleted file mode 100644 index c0f7930..0000000 --- a/test/090_solve_simple/01_U_U3.in +++ /dev/null | |||
| @@ -1,8 +0,0 @@ | |||
| 1 | UR0 UL0 DB0 DF0 UB0 UF0 DL0 DR0 FR0 FL0 BL0 BR0 UBR0 UFL0 DFL0 DBR0 UFR0 UBL0 DFR0 DBL0 | ||
| 2 | simple | ||
| 3 | |||
| 4 | normal | ||
| 5 | 0 | ||
| 6 | 3 | ||
| 7 | 3 | ||
| 8 | -1 | ||
diff --git a/test/090_solve_simple/01_U_U3.out b/test/090_solve_simple/01_U_U3.out deleted file mode 100644 index ca934b4..0000000 --- a/test/090_solve_simple/01_U_U3.out +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | U' | ||
diff --git a/test/090_solve_simple/02_MUMU_alloptimal.in b/test/090_solve_simple/02_MUMU_alloptimal.in deleted file mode 100644 index f97c95f..0000000 --- a/test/090_solve_simple/02_MUMU_alloptimal.in +++ /dev/null | |||
| @@ -1,8 +0,0 @@ | |||
| 1 | UB0 DF0 DB0 UF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0 | ||
| 2 | simple | ||
| 3 | |||
| 4 | normal | ||
| 5 | 0 | ||
| 6 | -1 | ||
| 7 | 10 | ||
| 8 | 0 | ||
diff --git a/test/090_solve_simple/02_MUMU_alloptimal.out b/test/090_solve_simple/02_MUMU_alloptimal.out deleted file mode 100644 index 06cd521..0000000 --- a/test/090_solve_simple/02_MUMU_alloptimal.out +++ /dev/null | |||
| @@ -1,4 +0,0 @@ | |||
| 1 | U2 R' L F2 R L' | ||
| 2 | R U2 R' L F2 L' | ||
| 3 | R L' U2 R' L F2 | ||
| 4 | L' U2 R' L F2 R | ||
diff --git a/test/090_solve_simple/solve_simple_tests.c b/test/090_solve_simple/solve_simple_tests.c deleted file mode 100644 index f5e00e2..0000000 --- a/test/090_solve_simple/solve_simple_tests.c +++ /dev/null | |||
| @@ -1,48 +0,0 @@ | |||
| 1 | #include "../test.h" | ||
| 2 | |||
| 3 | int64_t solve(cube_t, char *, char *, char *, int8_t, int8_t, int64_t, int8_t, | ||
| 4 | void *, char *); | ||
| 5 | |||
| 6 | void run(void) { | ||
| 7 | char cubestr[STRLENMAX], solverstr[STRLENMAX], optionsstr[STRLENMAX]; | ||
| 8 | char nisstypestr[STRLENMAX], minmovesstr[STRLENMAX]; | ||
| 9 | char maxmovesstr[STRLENMAX], maxsolsstr[STRLENMAX]; | ||
| 10 | char optimalstr[STRLENMAX], solutionsstr[STRLENMAX]; | ||
| 11 | cube_t cube; | ||
| 12 | int64_t maxsols; | ||
| 13 | int8_t minmoves, maxmoves, optimal; | ||
| 14 | |||
| 15 | fgets(cubestr, STRLENMAX, stdin); | ||
| 16 | fgets(solverstr, STRLENMAX, stdin); | ||
| 17 | fgets(optionsstr, STRLENMAX, stdin); | ||
| 18 | fgets(nisstypestr, STRLENMAX, stdin); | ||
| 19 | fgets(minmovesstr, STRLENMAX, stdin); | ||
| 20 | fgets(maxmovesstr, STRLENMAX, stdin); | ||
| 21 | fgets(maxsolsstr, STRLENMAX, stdin); | ||
| 22 | fgets(optimalstr, STRLENMAX, stdin); | ||
| 23 | |||
| 24 | solverstr[strcspn(solverstr, "\n")] = 0; | ||
| 25 | optionsstr[strcspn(optionsstr, "\n")] = 0; | ||
| 26 | nisstypestr[strcspn(nisstypestr, "\n")] = 0; | ||
| 27 | |||
| 28 | cube = readcube("H48", cubestr); | ||
| 29 | minmoves = atoi(minmovesstr); | ||
| 30 | maxmoves = atoi(maxmovesstr); | ||
| 31 | maxsols = atoi(maxsolsstr); | ||
| 32 | optimal = atoi(optimalstr); | ||
| 33 | |||
| 34 | solve( | ||
| 35 | cube, | ||
| 36 | solverstr, | ||
| 37 | optionsstr, | ||
| 38 | nisstypestr, | ||
| 39 | minmoves, | ||
| 40 | maxmoves, | ||
| 41 | maxsols, | ||
| 42 | optimal, | ||
| 43 | NULL, | ||
| 44 | solutionsstr | ||
| 45 | ); | ||
| 46 | |||
| 47 | printf("%s", solutionsstr); | ||
| 48 | } | ||
