diff options
Diffstat (limited to 'test/030_move/move_tests.c')
| -rw-r--r-- | test/030_move/move_tests.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/test/030_move/move_tests.c b/test/030_move/move_tests.c deleted file mode 100644 index 98c9592..0000000 --- a/test/030_move/move_tests.c +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | #include "../test.h" | ||
| 2 | |||
| 3 | oriented_cube_t applymoves(oriented_cube_t, char *); | ||
| 4 | |||
| 5 | void run(void) { | ||
| 6 | char movestr[STRLENMAX], cubestr[STRLENMAX]; | ||
| 7 | oriented_cube_t cube; | ||
| 8 | |||
| 9 | fgets(movestr, STRLENMAX, stdin); | ||
| 10 | fgets(cubestr, STRLENMAX, stdin); | ||
| 11 | cube = readcube(cubestr); | ||
| 12 | |||
| 13 | cube = applymoves(cube, movestr); | ||
| 14 | |||
| 15 | if (iserror(cube)) { | ||
| 16 | printf("Error moving cube\n"); | ||
| 17 | } else if (!issolvable(cube)) { | ||
| 18 | printf("Moved cube is not solvable\n"); | ||
| 19 | } else { | ||
| 20 | writecube(cube, NISSY_SIZE_CUBE, cubestr); | ||
| 21 | printf("%s\n", cubestr); | ||
| 22 | } | ||
| 23 | } | ||
