From c5c5017a335208881e27fc8f72c1d0145a04622a Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 9 Jun 2024 12:43:49 +0200 Subject: Remvoed cube_fast_t and more. More cleaning up to do. --- test/001_pieces/pieces_tests.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'test/001_pieces/pieces_tests.c') diff --git a/test/001_pieces/pieces_tests.c b/test/001_pieces/pieces_tests.c index f3d8d4e..1ef2fd0 100644 --- a/test/001_pieces/pieces_tests.c +++ b/test/001_pieces/pieces_tests.c @@ -1,13 +1,12 @@ #include "../test.h" -uint8_t corner(cube_fast_t, int); -uint8_t edge(cube_fast_t, int); +void pieces(cube_t *, uint8_t [static 8], uint8_t [static 12]); int main(void) { int i; + uint8_t corner[8], edge[12]; char str[STRLENMAX], *aux; cube_t cube; - cube_fast_t fast; aux = str; while (fgets(aux, STRLENMAX, stdin) != NULL) @@ -15,13 +14,13 @@ int main(void) { aux++; cube = readcube("H48", str); - fast = cubetofast(cube); + pieces(&cube, corner, edge); for (i = 0; i < 8; i++) - printf("%" PRIu8 " ", corner(fast, i)); + printf("%" PRIu8 " ", corner[i]); printf("\n"); for (i = 0; i < 12; i++) - printf("%" PRIu8 " ", edge(fast, i)); + printf("%" PRIu8 " ", edge[i]); printf("\n"); return 0; -- cgit v1.3