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/079_invcoord_co/invcoord_co_tests.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test/079_invcoord_co') diff --git a/test/079_invcoord_co/invcoord_co_tests.c b/test/079_invcoord_co/invcoord_co_tests.c index 9f7c3d5..fcd68d0 100644 --- a/test/079_invcoord_co/invcoord_co_tests.c +++ b/test/079_invcoord_co/invcoord_co_tests.c @@ -6,12 +6,14 @@ int64_t coord_co(cube_t); cube_t invcoord_co(int64_t); void run(void) { - cube_t cube; + oriented_cube_t cube; int64_t coord, coord2; + cube.orientation = 0; + /* Test all possible values for CO coordinate */ for (coord = 0; coord < POW_3_7; coord++) { - cube = invcoord_co(coord); + cube.cube = invcoord_co(coord); if (!isconsistent(cube)) { printf("Not consistent\n"); @@ -22,7 +24,7 @@ void run(void) { return; } - coord2 = coord_co(cube); + coord2 = coord_co(cube.cube); if (coord != coord2) { printf("Error: invcoord of %" PRId64 " returns %" PRId64 "\n", coord, coord2); -- cgit v1.3