From bab22e1946a656088804b61cf765461b48744971 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 22 Apr 2025 16:12:21 +0200 Subject: Update tests for oriented_cube_t --- test/081_getcube/getcube_tests.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test/081_getcube') 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); void run(void) { char str[STRLENMAX]; - cube_t cube; + oriented_cube_t cube; int64_t ep, eo, cp, co; fgets(str, STRLENMAX, stdin); @@ -16,7 +16,10 @@ void run(void) { fgets(str, STRLENMAX, stdin); co = atoll(str); - cube = getcube(ep, eo, cp, co); + cube = (oriented_cube_t) { + .cube = getcube(ep, eo, cp, co), + .orientation = 0 + }; if (iserror(cube)) { printf("Error cube\n"); -- cgit v1.3