aboutsummaryrefslogtreecommitdiff
path: root/test/031_premove/premove_tests.c
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-04-22 16:12:21 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-04-22 16:12:21 +0200
commitbab22e1946a656088804b61cf765461b48744971 (patch)
tree43ae3798e5c2f4fc63e68df72d134e742fcaf834 /test/031_premove/premove_tests.c
parent93522effba2f200257141189de5925a23fca93b8 (diff)
downloadnissy-core-bab22e1946a656088804b61cf765461b48744971.tar.gz
nissy-core-bab22e1946a656088804b61cf765461b48744971.zip
Update tests for oriented_cube_t
Diffstat (limited to 'test/031_premove/premove_tests.c')
-rw-r--r--test/031_premove/premove_tests.c4
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);
7void run(void) { 7void 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");

Generated with cgit - Back to sebastiano.tronto.net