From 086a06fe3d84ac8b2e74c824e05f9d23f0b292ab Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 22 Dec 2025 18:07:06 +0100 Subject: Added tests for copy_co, renamed some tests --- test/082_invcoord_epe/00_all.in | 0 test/082_invcoord_epe/00_all.out | 1 - test/082_invcoord_epe/invcoord_epe_tests.c | 32 ------------------------------ 3 files changed, 33 deletions(-) delete mode 100644 test/082_invcoord_epe/00_all.in delete mode 100644 test/082_invcoord_epe/00_all.out delete mode 100644 test/082_invcoord_epe/invcoord_epe_tests.c (limited to 'test/082_invcoord_epe') diff --git a/test/082_invcoord_epe/00_all.in b/test/082_invcoord_epe/00_all.in deleted file mode 100644 index e69de29..0000000 diff --git a/test/082_invcoord_epe/00_all.out b/test/082_invcoord_epe/00_all.out deleted file mode 100644 index d6109db..0000000 --- a/test/082_invcoord_epe/00_all.out +++ /dev/null @@ -1 +0,0 @@ -All good diff --git a/test/082_invcoord_epe/invcoord_epe_tests.c b/test/082_invcoord_epe/invcoord_epe_tests.c deleted file mode 100644 index 69c3c50..0000000 --- a/test/082_invcoord_epe/invcoord_epe_tests.c +++ /dev/null @@ -1,32 +0,0 @@ -#include "../test.h" - -#define FACT_4 24 - -uint64_t coord_epe(cube_t); -cube_t invcoord_epe(uint64_t); - -void run(void) { - oriented_cube_t cube; - uint64_t coord, coord2; - - cube.orientation = 0; - - /* Test all possible values for CP coordinate */ - for (coord = 0; coord < FACT_4; coord++) { - cube.cube = invcoord_epe(coord); - - if (!isconsistent(cube)) { - printf("Not consistent\n"); - return; - } - - coord2 = coord_epe(cube.cube); - if (coord != coord2) { - printf("Error: invcoord of %" PRIu64 - " returns %" PRIu64 "\n", coord, coord2); - return; - } - } - - printf("All good\n"); -} -- cgit v1.3