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/110_coord_invcoord_h48/coord_invcoord_h48_tests.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'test/110_coord_invcoord_h48') diff --git a/test/110_coord_invcoord_h48/coord_invcoord_h48_tests.c b/test/110_coord_invcoord_h48/coord_invcoord_h48_tests.c index 458ad31..0333f27 100644 --- a/test/110_coord_invcoord_h48/coord_invcoord_h48_tests.c +++ b/test/110_coord_invcoord_h48/coord_invcoord_h48_tests.c @@ -14,7 +14,8 @@ void run(void) { uint32_t *cocsepdata; uint64_t selfsim[COCSEP_CLASSES]; int64_t c, cc; - cube_t cube, invc, rep[COCSEP_CLASSES]; + oriented_cube_t cube; + cube_t invc, rep[COCSEP_CLASSES]; gendata_cocsep(buf, selfsim, rep); cocsepdata = (uint32_t *)(buf + INFOSIZE); @@ -23,11 +24,11 @@ void run(void) { h = 11; while (fgets(str, STRLENMAX, stdin) != NULL) { cube = readcube(str); - c = coord_h48(cube, cocsepdata, h); + c = coord_h48(cube.cube, cocsepdata, h); invc = invcoord_h48(c, rep, h); for (t = 0, found = false; t < 48; t++) { - cube = transform(invc, t); - cc = coord_h48(cube, cocsepdata, h); + cube.cube = transform(invc, t); + cc = coord_h48(cube.cube, cocsepdata, h); found = found || cc == c; } printf("%d %s\n", i, found ? "ok" : "ERROR"); -- cgit v1.3