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/080_invcoord_cp/00_all.in | 0 test/080_invcoord_cp/00_all.out | 1 - test/080_invcoord_cp/invcoord_cp_tests.c | 32 -------------------------------- 3 files changed, 33 deletions(-) delete mode 100644 test/080_invcoord_cp/00_all.in delete mode 100644 test/080_invcoord_cp/00_all.out delete mode 100644 test/080_invcoord_cp/invcoord_cp_tests.c (limited to 'test/080_invcoord_cp') diff --git a/test/080_invcoord_cp/00_all.in b/test/080_invcoord_cp/00_all.in deleted file mode 100644 index e69de29..0000000 diff --git a/test/080_invcoord_cp/00_all.out b/test/080_invcoord_cp/00_all.out deleted file mode 100644 index d6109db..0000000 --- a/test/080_invcoord_cp/00_all.out +++ /dev/null @@ -1 +0,0 @@ -All good diff --git a/test/080_invcoord_cp/invcoord_cp_tests.c b/test/080_invcoord_cp/invcoord_cp_tests.c deleted file mode 100644 index 7d1e33f..0000000 --- a/test/080_invcoord_cp/invcoord_cp_tests.c +++ /dev/null @@ -1,32 +0,0 @@ -#include "../test.h" - -#define FACT_8 40320 - -uint64_t coord_cp(cube_t); -cube_t invcoord_cp(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_8; coord++) { - cube.cube = invcoord_cp(coord); - - if (!isconsistent(cube)) { - printf("Not consistent\n"); - return; - } - - coord2 = coord_cp(cube.cube); - if (coord != coord2) { - printf("Error: invcoord of %" PRIu64 - " returns %" PRIu64 "\n", coord, coord2); - return; - } - } - - printf("All good\n"); -} -- cgit v1.3