diff options
Diffstat (limited to 'test/031_premove/premove_tests.c')
| -rw-r--r-- | test/031_premove/premove_tests.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/031_premove/premove_tests.c b/test/031_premove/premove_tests.c index 24773cd..10bed92 100644 --- a/test/031_premove/premove_tests.c +++ b/test/031_premove/premove_tests.c | |||
| @@ -7,14 +7,14 @@ cube_t premove(cube_t, uint8_t); | |||
| 7 | void run(void) { | 7 | void run(void) { |
| 8 | char movestr[STRLENMAX], cubestr[STRLENMAX]; | 8 | char movestr[STRLENMAX], cubestr[STRLENMAX]; |
| 9 | uint8_t move; | 9 | uint8_t move; |
| 10 | cube_t cube; | 10 | oriented_cube_t cube; |
| 11 | 11 | ||
| 12 | fgets(movestr, STRLENMAX, stdin); | 12 | fgets(movestr, STRLENMAX, stdin); |
| 13 | move = readmove(movestr[0]) + readmodifier(movestr[1]); | 13 | move = readmove(movestr[0]) + readmodifier(movestr[1]); |
| 14 | fgets(cubestr, STRLENMAX, stdin); | 14 | fgets(cubestr, STRLENMAX, stdin); |
| 15 | cube = readcube(cubestr); | 15 | cube = readcube(cubestr); |
| 16 | 16 | ||
| 17 | cube = premove(cube, move); | 17 | cube.cube = premove(cube.cube, move); |
| 18 | 18 | ||
| 19 | if (iserror(cube)) { | 19 | if (iserror(cube)) { |
| 20 | printf("Error moving cube\n"); | 20 | printf("Error moving cube\n"); |
