aboutsummaryrefslogtreecommitdiff
path: root/test/080_invcoord_cp
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-07-29 12:12:43 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-07-29 12:12:43 +0200
commitea0387796a349c91032fbcb10f50c6ad8607b0f6 (patch)
treeaed484690d24c0c28c7695d4b5389f2e3c341b96 /test/080_invcoord_cp
parent52c21640508c3fc668107778ae027ff4428ebd89 (diff)
downloadnissy-core-ea0387796a349c91032fbcb10f50c6ad8607b0f6.tar.gz
nissy-core-ea0387796a349c91032fbcb10f50c6ad8607b0f6.zip
All coordinates unsigned
Diffstat (limited to 'test/080_invcoord_cp')
-rw-r--r--test/080_invcoord_cp/invcoord_cp_tests.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/080_invcoord_cp/invcoord_cp_tests.c b/test/080_invcoord_cp/invcoord_cp_tests.c
index 2eb9ae2..7d1e33f 100644
--- a/test/080_invcoord_cp/invcoord_cp_tests.c
+++ b/test/080_invcoord_cp/invcoord_cp_tests.c
@@ -2,12 +2,12 @@
2 2
3#define FACT_8 40320 3#define FACT_8 40320
4 4
5int64_t coord_cp(cube_t); 5uint64_t coord_cp(cube_t);
6cube_t invcoord_cp(int64_t); 6cube_t invcoord_cp(uint64_t);
7 7
8void run(void) { 8void run(void) {
9 oriented_cube_t cube; 9 oriented_cube_t cube;
10 int64_t coord, coord2; 10 uint64_t coord, coord2;
11 11
12 cube.orientation = 0; 12 cube.orientation = 0;
13 13
@@ -22,8 +22,8 @@ void run(void) {
22 22
23 coord2 = coord_cp(cube.cube); 23 coord2 = coord_cp(cube.cube);
24 if (coord != coord2) { 24 if (coord != coord2) {
25 printf("Error: invcoord of %" PRId64 25 printf("Error: invcoord of %" PRIu64
26 " returns %" PRId64 "\n", coord, coord2); 26 " returns %" PRIu64 "\n", coord, coord2);
27 return; 27 return;
28 } 28 }
29 } 29 }

Generated with cgit - Back to sebastiano.tronto.net