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/050_compose/compose_tests.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test/050_compose/compose_tests.c') diff --git a/test/050_compose/compose_tests.c b/test/050_compose/compose_tests.c index c61775f..3dea055 100644 --- a/test/050_compose/compose_tests.c +++ b/test/050_compose/compose_tests.c @@ -4,14 +4,17 @@ cube_t compose(cube_t, cube_t); void run(void) { char str[STRLENMAX]; - cube_t c1, c2, c3; + oriented_cube_t c1, c2, c3; fgets(str, STRLENMAX, stdin); c1 = readcube(str); fgets(str, STRLENMAX, stdin); c2 = readcube(str); - c3 = compose(c1, c2); + c3 = (oriented_cube_t) { + .cube = compose(c1.cube, c2.cube), + .orientation = c1.orientation + }; if (iserror(c3)) { printf("Error composing cubes\n"); -- cgit v1.3