aboutsummaryrefslogtreecommitdiff
path: root/test/081_getcube/getcube_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/081_getcube/getcube_tests.c
parent93522effba2f200257141189de5925a23fca93b8 (diff)
downloadnissy-core-bab22e1946a656088804b61cf765461b48744971.tar.gz
nissy-core-bab22e1946a656088804b61cf765461b48744971.zip
Update tests for oriented_cube_t
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