aboutsummaryrefslogtreecommitdiff
path: root/test/075_set_eo/set_eo_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/075_set_eo/set_eo_tests.c')
-rw-r--r--test/075_set_eo/set_eo_tests.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/075_set_eo/set_eo_tests.c b/test/075_set_eo/set_eo_tests.c
index 2e05e9a..ef2156d 100644
--- a/test/075_set_eo/set_eo_tests.c
+++ b/test/075_set_eo/set_eo_tests.c
@@ -6,7 +6,7 @@ void pieces(cube_t *, uint8_t [static 8], uint8_t [static 12]);
6 6
7void run(void) { 7void run(void) {
8 char str[STRLENMAX]; 8 char str[STRLENMAX];
9 cube_t cube; 9 oriented_cube_t cube;
10 uint8_t edge[12], corner[8]; 10 uint8_t edge[12], corner[8];
11 int64_t eo; 11 int64_t eo;
12 12
@@ -15,12 +15,12 @@ void run(void) {
15 fgets(str, STRLENMAX, stdin); 15 fgets(str, STRLENMAX, stdin);
16 eo = atoi(str); 16 eo = atoi(str);
17 17
18 set_eo(&cube, eo); 18 set_eo(&cube.cube, eo);
19 19
20 if (iserror(cube)) { 20 if (iserror(cube)) {
21 printf("Error setting EO\n"); 21 printf("Error setting EO\n");
22 } else if (!isconsistent(cube)) { 22 } else if (!isconsistent(cube)) {
23 pieces(&cube, corner, edge); 23 pieces(&cube.cube, corner, edge);
24 fprintf(stderr, "edges: "); 24 fprintf(stderr, "edges: ");
25 for (int i = 0; i < 12; i++) 25 for (int i = 0; i < 12; i++)
26 fprintf(stderr, "%d ", edge[i]); 26 fprintf(stderr, "%d ", edge[i]);

Generated with cgit - Back to sebastiano.tronto.net