aboutsummaryrefslogtreecommitdiff
path: root/test/081_getcube/getcube_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/081_getcube/getcube_tests.c')
-rw-r--r--test/081_getcube/getcube_tests.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/081_getcube/getcube_tests.c b/test/081_getcube/getcube_tests.c
index 916c42b..07e621e 100644
--- a/test/081_getcube/getcube_tests.c
+++ b/test/081_getcube/getcube_tests.c
@@ -4,7 +4,7 @@ cube_t getcube(int64_t, int64_t, int64_t, int64_t);
4 4
5void run(void) { 5void run(void) {
6 char str[STRLENMAX]; 6 char str[STRLENMAX];
7 cube_t cube; 7 oriented_cube_t cube;
8 int64_t ep, eo, cp, co; 8 int64_t ep, eo, cp, co;
9 9
10 fgets(str, STRLENMAX, stdin); 10 fgets(str, STRLENMAX, stdin);
@@ -16,7 +16,10 @@ void run(void) {
16 fgets(str, STRLENMAX, stdin); 16 fgets(str, STRLENMAX, stdin);
17 co = atoll(str); 17 co = atoll(str);
18 18
19 cube = getcube(ep, eo, cp, co); 19 cube = (oriented_cube_t) {
20 .cube = getcube(ep, eo, cp, co),
21 .orientation = 0
22 };
20 23
21 if (iserror(cube)) { 24 if (iserror(cube)) {
22 printf("Error cube\n"); 25 printf("Error cube\n");

Generated with cgit - Back to sebastiano.tronto.net