aboutsummaryrefslogtreecommitdiff
path: root/test/079_invcoord_co
diff options
context:
space:
mode:
Diffstat (limited to 'test/079_invcoord_co')
-rw-r--r--test/079_invcoord_co/invcoord_co_tests.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/079_invcoord_co/invcoord_co_tests.c b/test/079_invcoord_co/invcoord_co_tests.c
index 9f7c3d5..fcd68d0 100644
--- a/test/079_invcoord_co/invcoord_co_tests.c
+++ b/test/079_invcoord_co/invcoord_co_tests.c
@@ -6,12 +6,14 @@ int64_t coord_co(cube_t);
6cube_t invcoord_co(int64_t); 6cube_t invcoord_co(int64_t);
7 7
8void run(void) { 8void run(void) {
9 cube_t cube; 9 oriented_cube_t cube;
10 int64_t coord, coord2; 10 int64_t coord, coord2;
11 11
12 cube.orientation = 0;
13
12 /* Test all possible values for CO coordinate */ 14 /* Test all possible values for CO coordinate */
13 for (coord = 0; coord < POW_3_7; coord++) { 15 for (coord = 0; coord < POW_3_7; coord++) {
14 cube = invcoord_co(coord); 16 cube.cube = invcoord_co(coord);
15 17
16 if (!isconsistent(cube)) { 18 if (!isconsistent(cube)) {
17 printf("Not consistent\n"); 19 printf("Not consistent\n");
@@ -22,7 +24,7 @@ void run(void) {
22 return; 24 return;
23 } 25 }
24 26
25 coord2 = coord_co(cube); 27 coord2 = coord_co(cube.cube);
26 if (coord != coord2) { 28 if (coord != coord2) {
27 printf("Error: invcoord of %" PRId64 29 printf("Error: invcoord of %" PRId64
28 " returns %" PRId64 "\n", coord, coord2); 30 " returns %" PRId64 "\n", coord, coord2);

Generated with cgit - Back to sebastiano.tronto.net